Changeset 3929

Show
Ignore:
Timestamp:
07/01/08 12:04:06 (6 months ago)
Author:
rharkins
Message:

Fixed issue (hopefully) with last_id.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • tracformsplugin/branches/tracforms-0.2/0.11/tracforms/formdb.py

    r3928 r3929  
    8787                            (context, state, updater, updated_on) 
    8888                            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') 
    9091                else: 
    9192                    cursor(""" 
  • tracformsplugin/branches/tracforms-0.2/0.11/tracforms/tracdb.py

    r3928 r3929  
    8787        return self.execute(sql, *args, **variants) 
    8888 
    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) 
    9291 
    9392class DBComponent(Component):