Changeset 657

Show
Ignore:
Timestamp:
05/09/08 16:29:48 (7 months ago)
Author:
sylvain
Message:

Minor fixes

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • oss/headstock/headstock/example/simplechat/simplechat.py

    r656 r657  
    120120    Inboxes = {"inbox"    : "headstock.api.contact.Message instance received from a peer"\ 
    121121                   "or the string input in the console", 
     122               "jid"      : "headstock.api.jid.JID instance received from the server", 
    122123               "control"  : "stops the component"} 
    123124     
     
    215216        pub = PublishTo("DISCO_FEAT") 
    216217        self.link((self, 'features-announce'), (pub, 'inbox')) 
    217         self.addChildren(sub) 
    218         sub.activate() 
     218        self.addChildren(pub) 
     219        pub.activate() 
    219220 
    220221        sub = SubscribeTo("BOUND") 
     
    287288 
    288289    def main(self): 
     290        yield self.initComponents() 
     291 
    289292        while 1: 
    290293            if self.dataReady("control"): 
     
    402405                               saslerr = SaslError(), 
    403406                               discohandler = DiscoHandler(self.jid, self.domain), 
    404                                activityhandler=ActivityHandler(), 
     407                               activityhandler = ActivityHandler(), 
    405408                               rosterhandler = RosterHandler(self.jid), 
    406409                               msgdummyhandler = DummyMessageHandler(),