##// END OF EJS Templates
auth: disable password change form for accounts that are not managed by RhodeCode....
auth: disable password change form for accounts that are not managed by RhodeCode. - in case of external accounts such as LDAP/oAuth, password reset doesn't make sense. - make it consisten with other disable forms for external account - fixes #5150

File last commit:

r1:854a839a default
r1275:b650c2de default
Show More
util.py
10 lines | 211 B | text/x-python | PythonLexer
"""
Safe quoting method
"""
def safe_quote(obj):
# this is the SQLA 0.9 approach
if hasattr(obj, 'name') and hasattr(obj.name, 'quote'):
return obj.name.quote
else:
return obj.quote