##// END OF EJS Templates
markdown-renderer: use lazy loaded markdown renderers initialization....
markdown-renderer: use lazy loaded markdown renderers initialization. - they are heavy to initialize, and should be cached. - we're not caching it at load time, but on access time after this change. - speeds up application start.

File last commit:

r1:854a839a default
r3239:1b708774 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