Update of /cvsroot/freevo/kaa/vfs/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23214
Modified Files:
db.py
Log Message:
Retain old id when modifying existing types.
Index: db.py
===================================================================
RCS file: /cvsroot/freevo/kaa/vfs/src/db.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** db.py 22 Aug 2005 18:39:34 -0000 1.2
--- db.py 22 Aug 2005 18:49:54 -0000 1.3
***************
*** 132,135 ****
--- 132,136 ----
else:
new_attrs = {}
+ cur_type_id = None
# Merge standard attributes with user attributes for this type.
attr_list = (
***************
*** 169,174 ****
# Add this type to the types table, including the attributes
# dictionary.
! self._db_query("INSERT OR REPLACE INTO types VALUES(NULL, ?, ?)",
! (type_name, buffer(cPickle.dumps(attrs, 2))))
if new_attrs:
--- 170,175 ----
# Add this type to the types table, including the attributes
# dictionary.
! self._db_query("INSERT OR REPLACE INTO types VALUES(?, ?, ?)",
! (cur_type_id, type_name, buffer(cPickle.dumps(attrs,
2))))
if new_attrs:
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog