##// END OF EJS Templates
emails: optimize some labels, and made few i18n fixes....
emails: optimize some labels, and made few i18n fixes. - use more consistent messages - use `data` variable for readability - don't show some redundant info on comments - use better titles that reflect action

File last commit:

r1:854a839a default
r532:7cb56fd9 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