##// END OF EJS Templates
nix: Updated hash of rhodecode-tools....
nix: Updated hash of rhodecode-tools. This should be the last time we have to update the hash without code changes in rhodecode-tools becuase the archive creation now uses the modifucation time of the changeset. Therefore the hash only changes if another commit is referenced.

File last commit:

r1:854a839a default
r875:5a048c57 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