##// END OF EJS Templates
wsgi-stack: Move the vcs middleware out of the error handling....
wsgi-stack: Move the vcs middleware out of the error handling. Currently we are bypassing the error handling in case of responses from the vcs middleware with a custom response header. By moving it out of the error handling we don't need the custom header anymore.

File last commit:

r1:854a839a default
r948:8c23f9c3 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