Update of /cvsroot/jtoolkit/jToolkit/data
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10548
Modified Files:
dbtable.py
Log Message:
added support for deleting rows from table
Index: dbtable.py
===================================================================
RCS file: /cvsroot/jtoolkit/jToolkit/data/dbtable.py,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** dbtable.py 9 Feb 2004 14:09:25 -0000 1.8
--- dbtable.py 9 Feb 2004 14:11:12 -0000 1.9
***************
*** 128,131 ****
--- 128,138 ----
self.db.update(self.tablename, self.rowidcols, rowid, updatedict)
+ def deleterow(self, argdict):
+ """delete the row in the table"""
+ rowid = self.getrowid(argdict)
+ if rowid is None:
+ raise TypeError, "rowid is None in deletelog"
+ self.db.delete(self.tablename, self.rowidcols, rowid)
+
def createtable(self):
"""creates the table represented by self, using tablename and columnlist and returning success"""
|