From: Simo Sorce Date: Thu, 30 Oct 2014 01:51:52 +0000 (-0400) Subject: Remove unused option X-Git-Tag: v0.3.0~21 X-Git-Url: http://git.cascardo.info/?p=cascardo%2Fipsilon.git;a=commitdiff_plain;h=4c86e749d9d35c7eca0e25b82bd072edc9426902 Remove unused option Autotable is always enabled, so remove the option and just alays use it. Signed-off-by: Simo Sorce Reviewed-by: Patrick Uiterwijk --- 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)