Changeset 166:d9c10a5b5c0d for wokkel/component.py
- Timestamp:
- Jan 23, 2012, 3:48:48 PM (10 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
wokkel/component.py
r165 r166 76 76 77 77 @ivar domains: Domains (as C{str}) this component will handle traffic for. 78 @type domains: L{set}78 @type domains: C{set} 79 79 """ 80 80 … … 251 251 252 252 @ivar routes: Routes based on the host part of JIDs. Maps host names to the 253 L{EventDispatcher<utility.EventDispatcher>}s that should 254 receive the traffic. A key of C{None} means the default 255 route. 253 L{EventDispatcher<twisted.words.xish.utility.EventDispatcher>}s that 254 should receive the traffic. A key of C{None} means the default route. 256 255 @type routes: C{dict} 257 256 """ … … 271 270 @param destination: Destination of the route to be added as a host name 272 271 or C{None} for the default route. 273 @type destination: C{str} or C{NoneType}. 272 @type destination: C{str} or C{NoneType} 273 274 274 @param xs: XML Stream to register the route for. 275 @type xs: L{EventDispatcher<utility.EventDispatcher>}. 275 @type xs: 276 L{EventDispatcher<twisted.words.xish.utility.EventDispatcher>} 276 277 """ 277 278 self.routes[destination] = xs … … 285 286 @param destination: Destination of the route that should be removed. 286 287 @type destination: C{str}. 288 287 289 @param xs: XML Stream to remove the route for. 288 @type xs: L{EventDispatcher<utility.EventDispatcher>}. 290 @type xs: 291 L{EventDispatcher<twisted.words.xish.utility.EventDispatcher>} 289 292 """ 290 293 xs.removeObserver('/*', self.route)
Note: See TracChangeset
for help on using the changeset viewer.