Changeset 320 for trunk/sandbox/jhb/oc2/transports.py
- Timestamp:
- 05/28/09 14:30:52 (3 years ago)
- Files:
-
- 1 modified
-
trunk/sandbox/jhb/oc2/transports.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/sandbox/jhb/oc2/transports.py
r319 r320 69 69 def __init__(self, *args): 70 70 self.results = list(args) 71 71 self.debug = 0 72 72 def __call__(self,message): 73 if self.debug: 74 import pdb; pdb.set_trace() 73 75 result = self.results.pop(0) 74 76 … … 79 81 return method(*args) 80 82 81 elif callable(result):83 elif not isinstance(result,messages.Message) and callable(result): 82 84 return result(message) 83 85
