]> git.llucax.com Git - software/sercom-old.git/blobdiff - src/sc_dbq
Bugfix.
[software/sercom-old.git] / src / sc_dbq
index 5d016de2a7568ad669db92f70668520bac63c187..2b063345eb3d9a68d1937f21b86e787f24989a2b 100755 (executable)
@@ -9,7 +9,7 @@ import sys
 import sqlobject
 # Módulos locales
 import sercom
-from sercom.dbo import *
+from sercom.sqlo import *
 
 def ayuda():
     return '''Uso:
@@ -20,6 +20,14 @@ def args2dict(l, conn):
     for arg in l:
         key, val = arg.split('=')
         if val == 'None': val = None
+        elif val == 'True': val = True
+        elif val == 'False': val = False
+        elif val.isdigit():
+            val = int(val)
+        else:
+            try:
+                val = float(val)
+            except ValueError: pass
         d[key] = val
     return d