Commits

zuroc committed c9dff09

f

  • Participants
  • Parent commits 00c7c5d

Comments (0)

Files changed (2)

 
 setup(
     name='zorm',
-    version="0.118",
+    version="0.130",
     description="A minimal ORM",
     author="zuroc 张沈鹏",
     author_email="zsp042@gmail.com",

File zorm/sqlstore.py

             return farm
 
     def get_db_by_table(self, table):
-        farm = self.tables.get(table)
+        tables = self.tables
+        farm = tables.get(table)
         if farm is None:
-            raise Exception("%s TABLE NOT CONFIGURE" % table)
+            print "%s TABLE NOT CONFIGURE" % table
+            return tables['*']
         else:
             return farm