d = {'connection': conn}
for arg in l:
key, val = arg.split('=')
+ if val == 'None': val = None
d[key] = val
return d
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))