##// END OF EJS Templates
core: remove writing of largeobject dirs on AppStartup....
core: remove writing of largeobject dirs on AppStartup. - this makes celery much slower - creates a database connection on APP start which again makes celery explode sometimes - making a db connection on AppCreation could lead to some problems in future.

File last commit:

r1:854a839a default
r1680:fce11c66 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