##// END OF EJS Templates
http-protocol: Add a method to invalidate the VCSServer cache....
http-protocol: Add a method to invalidate the VCSServer cache. This method allows to invalidate the cached repository objects in the VCSServer. It generates a new UUID which is used by the VCSServer as cache key.

File last commit:

r1:854a839a default
r403:e1d0ae4c 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