Remove unused option
authorSimo Sorce <simo@redhat.com>
Thu, 30 Oct 2014 01:51:52 +0000 (21:51 -0400)
committerPatrick Uiterwijk <puiterwijk@redhat.com>
Wed, 12 Nov 2014 22:47:34 +0000 (23:47 +0100)
Autotable is always enabled, so remove the option and just alays use it.

Signed-off-by: Simo Sorce <simo@redhat.com>
Reviewed-by: Patrick Uiterwijk <puiterwijk@redhat.com>
ipsilon/util/data.py

index 2af2bdc..893087f 100755 (executable)
@@ -48,17 +48,15 @@ class SqlStore(Log):
 
 def SqlAutotable(f):
     def at(self, *args, **kwargs):
 
 def SqlAutotable(f):
     def at(self, *args, **kwargs):
-        if self.autotable:
-            self.create()
+        self.create()
         return f(self, *args, **kwargs)
     return at
 
 
 class SqlQuery(Log):
 
         return f(self, *args, **kwargs)
     return at
 
 
 class SqlQuery(Log):
 
-    def __init__(self, db_obj, table, columns, autotable=True, trans=True):
+    def __init__(self, db_obj, table, columns, trans=True):
         self._db = db_obj
         self._db = db_obj
-        self.autotable = autotable
         self._con = self._db.connection()
         self._trans = self._con.begin() if trans else None
         self._table = self._get_table(table, columns)
         self._con = self._db.connection()
         self._trans = self._con.begin() if trans else None
         self._table = self._get_table(table, columns)