diff options
author | Simo Sorce <simo@redhat.com> | 2014-10-29 21:51:52 -0400 |
---|---|---|
committer | Patrick Uiterwijk <puiterwijk@redhat.com> | 2014-11-12 23:47:34 +0100 |
commit | 4c86e749d9d35c7eca0e25b82bd072edc9426902 (patch) | |
tree | fdadb3f849ced89a91e60cb8769280f11cb02abc /ipsilon/util/data.py | |
parent | 4c56c3f3801fcfbf463906cff3c8dbbb0e23ed87 (diff) | |
download | ipsilon-4c86e749d9d35c7eca0e25b82bd072edc9426902.tar.gz ipsilon-4c86e749d9d35c7eca0e25b82bd072edc9426902.tar.xz ipsilon-4c86e749d9d35c7eca0e25b82bd072edc9426902.zip |
Remove unused option
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>
Diffstat (limited to 'ipsilon/util/data.py')
-rwxr-xr-x | ipsilon/util/data.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/ipsilon/util/data.py b/ipsilon/util/data.py index 2af2bdc..893087f 100755 --- a/ipsilon/util/data.py +++ b/ipsilon/util/data.py @@ -48,17 +48,15 @@ class SqlStore(Log): 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): - 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.autotable = autotable self._con = self._db.connection() self._trans = self._con.begin() if trans else None self._table = self._get_table(table, columns) |