##// END OF EJS Templates
user-groups: added info, and new panel to control user group synchronization....
user-groups: added info, and new panel to control user group synchronization. - allows to check status of user-group and if it's going to be sync-ed via external plugins. - allows to set manual synchronization for already existing RhodeCode Groups.

File last commit:

r1:854a839a default
r1600:081c7a81 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