]> git.llucax.com Git - software/sercom-old.git/blobdiff - src/sc_dbq
Bugfix.
[software/sercom-old.git] / src / sc_dbq
index 5ce3374aeb9ba781b5c2016754d29865f065956e..2b063345eb3d9a68d1937f21b86e787f24989a2b 100755 (executable)
@@ -9,7 +9,7 @@ import sys
 import sqlobject
 # Módulos locales
 import sercom
-from sercom.sqlobject 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