From 03d6ed2cc045807bff6070192dd5fe75f14df5a0 Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Fri, 18 Feb 2005 17:57:13 +0000 Subject: [PATCH 1/1] Bugfix: Manejo de None y error. --- src/sc_dbq | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)) -- 2.43.0