aboutsummaryrefslogtreecommitdiff
path: root/scripts/rpki/sql.py
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2007-09-15 18:15:56 +0000
committerRob Austein <sra@hactrn.net>2007-09-15 18:15:56 +0000
commit36bea8f05a830427f277c91568fd1b76b3be083a (patch)
tree5c888113067b5219a00e223c91a7755328bba713 /scripts/rpki/sql.py
parentf70c72ffd06608a4c4ff8bf6ca744797eb16b690 (diff)
Checkpoint
svn path=/scripts/rpki/left_right.py; revision=964
Diffstat (limited to 'scripts/rpki/sql.py')
-rw-r--r--scripts/rpki/sql.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/rpki/sql.py b/scripts/rpki/sql.py
index ad44b9e8..3bee2ff8 100644
--- a/scripts/rpki/sql.py
+++ b/scripts/rpki/sql.py
@@ -111,7 +111,7 @@ class sql_persistant(object):
self.in_sql = True
self.sql_decode(sql_parent, *row)
if self.sql_id_name is not None:
- cache_add(self, self.__class__, getattr(self, self.sql_id_name))
+ self.cache_add()
self_dict = self.sql_encode()
self.sql_fetch_hook(db, cur)
result.append(self)
@@ -128,7 +128,7 @@ class sql_persistant(object):
cur.execute(self.sql_insert_cmd, self.sql_encode())
if self.sql_id_name is not None:
setattr(self, self.sql_id_name, cur.lastrowid)
- cache_add(self, self.__class__, getattr(self, self.sql_id_name))
+ self.cache_add()
self.sql_insert_hook(db, cur)
elif self.sql_dirty:
cur.execute(self.sql_update_cmd, self.sql_encode())