Changeset 123

Show
Ignore:
Timestamp:
04/22/02 19:11:39 (6 years ago)
Author:
sholloway
Message:

Bugaboo

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/RBJabber/RBJabber/SubjectObserver/StateMachine.py

    r121 r123  
    5353        self.ReduceFn = ReduceFn 
    5454 
    55     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 
     55    #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 
    5959    #def __nonzero__(self): return int(self) 
    6060    def __int__(self): return self.value 
     
    7575    def CheckInfluxs(self, subject, **kw): 
    7676        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]
    7878            if precondition: 
    7979                lock = self.StateSubject.Lock()