X-Git-Url: https://git.llucax.com/software/sercom-old.git/blobdiff_plain/e8abee9ba294fb9900e0d057945b286886e117e1..53e0d8d7546953717a68b65e79d48a0a0c763caf:/src/sc_dbq diff --git a/src/sc_dbq b/src/sc_dbq index 61f69e4..e105f1f 100755 --- a/src/sc_dbq +++ b/src/sc_dbq @@ -20,6 +20,7 @@ def args2dict(l, conn): d = {'connection': conn} for arg in l: key, val = arg.split('=') + if val == 'None': val = None d[key] = val return d @@ -79,7 +80,7 @@ try: objs = eval(obj).selectBy(**args2dict(where, conn)) for o in objs: print 'Modificando:', o, - o.set(**args2dict(args)) + o.set(**args2dict(args, conn)) print '->', o elif cmd in ('add', 'new', 'insert'): o = eval(obj)(**args2dict(args, conn))