comparison libervia.tac @ 35:d43d6e4b9dc8

room user joining/leaving
author Goffi <goffi@goffi.org>
date Mon, 16 May 2011 18:19:35 +0200
parents 7684e3ceb12d
children 1d406077b49b
comparison
equal deleted inserted replaced
34:ed935f763cc8 35:d43d6e4b9dc8
342 print(u"Can't connect to SàT backend, are you sure it's launched ?") 342 print(u"Can't connect to SàT backend, are you sure it's launched ?")
343 import sys 343 import sys
344 sys.exit(1) 344 sys.exit(1)
345 self.bridge.register("connected", self.signal_handler.connected) 345 self.bridge.register("connected", self.signal_handler.connected)
346 self.bridge.register("connectionError", self.signal_handler.connectionError) 346 self.bridge.register("connectionError", self.signal_handler.connectionError)
347 for signal_name in ['presenceUpdate', 'personalEvent', 'newMessage', 'roomJoined']: 347 for signal_name in ['presenceUpdate', 'personalEvent', 'newMessage', 'roomJoined', 'roomUserJoined', 'roomUserLeft']:
348 self.bridge.register(signal_name, self.signal_handler.getGenericCb(signal_name)) 348 self.bridge.register(signal_name, self.signal_handler.getGenericCb(signal_name))
349 root.putChild('json_signal_api', self.signal_handler) 349 root.putChild('json_signal_api', self.signal_handler)
350 root.putChild('json_api', MethodHandler(self)) 350 root.putChild('json_api', MethodHandler(self))
351 root.putChild('register_api', _register) 351 root.putChild('register_api', _register)
352 root.putChild('blog', MicroBlog(self)) 352 root.putChild('blog', MicroBlog(self))