/[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.5 by dagobah, Sun Jun 27 11:06:54 2004 UTC revision 1.6 by dagobah, Sun Jun 27 11:11:00 2004 UTC
# Line 131  class VendingMachine: Line 131  class VendingMachine:
131                          msg += '%02x'%duration                          msg += '%02x'%duration
132                  self.wfh.write(msg+'\n')                  self.wfh.write(msg+'\n')
133                  (code, string) = self.get_response()                  (code, string) = self.get_response()
134                  # FIXME: workaround a bug in rom W. should be just: return (code == '500', code, string)                  return (code == '501', code, string)
                 return (code == '500' or code == '501', code, string)  
135    
136          def display(self, string):          def display(self, string):
137                  if len(string) > 10:                  if len(string) > 10:

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

Managed by UCC Webmasters ViewVC Help
Powered by ViewVC 1.1.26