Changeset 3929
- Timestamp:
- 07/01/08 12:04:06 (6 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
tracformsplugin/branches/tracforms-0.2/0.11/tracforms/formdb.py
r3928 r3929 87 87 (context, state, updater, updated_on) 88 88 VALUES (%s, %s, %s, %s) 89 """, context, state, updater, updated_on).last_id 89 """, context, state, updater, updated_on) \ 90 .last_id('tracform_forms', 'tracform_id') 90 91 else: 91 92 cursor(""" tracformsplugin/branches/tracforms-0.2/0.11/tracforms/tracdb.py
r3928 r3929 87 87 return self.execute(sql, *args, **variants) 88 88 89 @property 90 def last_id(self): 91 return self.db.get_last_id() 89 def last_id(self, cursor, table, column='id'): 90 return self.db.get_last_id(self, table, column) 92 91 93 92 class DBComponent(Component):
