Changeset 123

Show
Ignore:
Timestamp:
04/13/08 22:27:05 (5 months ago)
Author:
njriley
Message:

make vending work?

Files:

Legend:

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

    r79 r123  
    88        # We pause in between the sends because the PIC does not yet correctly buffer the inputs to send to the machine. 
    99        def vendItem(self, location): 
    10                 location = location.rjust(2, '0') 
     10                location = str(location).rjust(2, '0') 
    1111                self.pic.write(location[0]) 
    1212                time.sleep(0.5) 
  • sucrose/trunk/python/api/sucrose.py

    r122 r123  
    6666                        self.session.save(txn) 
    6767                        if hasattr(self, 'pic'): 
    68                                 self.pic.vendItem(location
     68                                self.pic.vendItem(tray.machine_tray_id
    6969                                self.session.commit() 
    7070                except: