Changeset 123
- Timestamp:
- 04/22/02 19:11:39 (6 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/RBJabber/RBJabber/SubjectObserver/StateMachine.py
r121 r123 53 53 self.ReduceFn = ReduceFn 54 54 55 def __or__(self, other): return int(self) or other56 def __ror__(self, other): return int(self) or other57 def __rand__(self, other): return int(self) and other58 def __and__(self, other): return int(self) and other55 #def __or__(self, other): return int(self) or other 56 #def __ror__(self, other): return int(self) or other 57 #def __rand__(self, other): return int(self) and other 58 #def __and__(self, other): return int(self) and other 59 59 #def __nonzero__(self): return int(self) 60 60 def __int__(self): return self.value … … 75 75 def CheckInfluxs(self, subject, **kw): 76 76 if kw.get('state', 0) and not self.value: 77 precondition = reduce(self.ReduceFn, self._Influxs)77 precondition = reduce(self.ReduceFn, [int(x) for x in self._Influxs]) 78 78 if precondition: 79 79 lock = self.StateSubject.Lock()
