Changeset 657
- Timestamp:
- 05/09/08 16:29:48 (7 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
oss/headstock/headstock/example/simplechat/simplechat.py
r656 r657 120 120 Inboxes = {"inbox" : "headstock.api.contact.Message instance received from a peer"\ 121 121 "or the string input in the console", 122 "jid" : "headstock.api.jid.JID instance received from the server", 122 123 "control" : "stops the component"} 123 124 … … 215 216 pub = PublishTo("DISCO_FEAT") 216 217 self.link((self, 'features-announce'), (pub, 'inbox')) 217 self.addChildren( sub)218 sub.activate()218 self.addChildren(pub) 219 pub.activate() 219 220 220 221 sub = SubscribeTo("BOUND") … … 287 288 288 289 def main(self): 290 yield self.initComponents() 291 289 292 while 1: 290 293 if self.dataReady("control"): … … 402 405 saslerr = SaslError(), 403 406 discohandler = DiscoHandler(self.jid, self.domain), 404 activityhandler =ActivityHandler(),407 activityhandler = ActivityHandler(), 405 408 rosterhandler = RosterHandler(self.jid), 406 409 msgdummyhandler = DummyMessageHandler(),
