Changeset 141

Show
Ignore:
Timestamp:
04/14/08 16:32:30 (5 months ago)
Author:
njriley
Message:

always close the session after the transaction finishes, so balances are up to date

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • sucrose/trunk/python/api/sucrose.py

    r123 r141  
    6868                                self.pic.vendItem(tray.machine_tray_id) 
    6969                                self.session.commit() 
     70                        else: 
     71                                print 'would commit here' 
     72                        self.session.close() 
    7073                except: 
    71                         self.session.rollback() 
     74                        self.session.close() 
    7275                        raise 
    7376