disable "pretty" js output

master
inpos 2018-08-09 16:49:32 +03:00
parent c3b5cb0e48
commit 7cba50300a
1 changed files with 2 additions and 2 deletions

View File

@ -19,10 +19,10 @@ class FuncWithParams:
self.params = params
def list2extjs(l):
return '[\n%s\n]' % ',\n'.join([encode(v) for v in l])
return '[ %s ]' % ', '.join([encode(v) for v in l])
def dict2extjs(d):
return '{\n%s\n}' % ',\n'.join('%s: %s' % (k, encode(v)) for k,v in d.items())
return '{ %s }' % ', '.join('%s: %s' % (k, encode(v)) for k,v in d.items())
def encode(o):