From: Leandro Lucarella Date: Fri, 18 Feb 2005 17:57:13 +0000 (+0000) Subject: Bugfix: Manejo de None y error. X-Git-Tag: svn_import~100 X-Git-Url: https://git.llucax.com/software/sercom-old.git/commitdiff_plain/03d6ed2cc045807bff6070192dd5fe75f14df5a0?ds=sidebyside Bugfix: Manejo de None y error. --- 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))