X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Futil%2Ftable.py;h=779562f83577fe2a734e1b4f6a7f82795d4e0340;hb=7928eda8ae331272276237740075e23c6fcfb63f;hp=bccda20dcded85a53912e88c339221bfdb3ca305;hpb=db10f0496d0ccd23a4af5457a909abd05973c1e3;p=sfa.git diff --git a/sfa/util/table.py b/sfa/util/table.py index bccda20d..779562f8 100644 --- a/sfa/util/table.py +++ b/sfa/util/table.py @@ -84,6 +84,7 @@ class SfaTable(list): self.db.do(querystr) for index in indexes: self.db.do(index) + self.db.commit() def remove(self, record): query_str = "DELETE FROM %s WHERE record_id = %s" % \ @@ -96,6 +97,7 @@ class SfaTable(list): sql = " DELETE FROM %s WHERE authority = %s" % \ (self.tablename, record['hrn']) self.db.do(sql) + self.db.commit() def insert(self, record): db_fields = self.db_fields(record)