/[anoncvs]/projects/dispense2/sql-edition/servers/VendingMachine.py


UCC Code Repository

Diff of /projects/dispense2/sql-edition/servers/VendingMachine.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.13 by dagobah, Sun Oct 31 09:29:05 2004 UTC revision 1.14 by mtearle, Sun Dec 12 06:35:26 2004 UTC
# Line 88  class VendingMachine: Line 88  class VendingMachine:
88    
89          def handle_event(self, code, text):          def handle_event(self, code, text):
90                  if code == '400':                  if code == '400':
                         self.events.append((DOOR, 0))  
                 elif code == '401':  
91                          self.events.append((DOOR, 1))                          self.events.append((DOOR, 1))
92                    elif code == '401':
93                            self.events.append((DOOR, 0))
94                  elif code == '610':                  elif code == '610':
95                          self.events.append((SWITCH, None))                          self.events.append((SWITCH, None))
96                          self.interpret_switches(text)                          self.interpret_switches(text)

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14

Managed by UCC Webmasters ViewVC Help
Powered by ViewVC 1.1.26