diff options
Diffstat (limited to 'helper.py')
-rw-r--r-- | helper.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -7,3 +7,7 @@ def appdir (*args): def url (path): return "\"%s\"" % web.url(path) + +def toJS (ls): + ls = ("'%s':'%s'" % x for x in ls) + return "{ %s }" % ", ".join(ls) |