##// END OF EJS Templates
events: Send events when user is created or updated....
events: Send events when user is created or updated. Send the UserPreCreate event before a new user is created. Send the UserPreUpdate event before a user is updated.

File last commit:

r1:854a839a default
r230:636c8b2a 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