##// END OF EJS Templates
repo-switcher: new unified search box for filtering/accessing users, repos and repo groups....
repo-switcher: new unified search box for filtering/accessing users, repos and repo groups. - mainly driven by customer feedback - two filter boxes on main page was confusing, and people constantly asked if grid filter can search recursive - now we use one unified search on main nave accessible on every page - it now also can search for users

File last commit:

r1:854a839a default
r2774:a8ecef4e 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