diff sat.tac @ 72:f271fff3a713

MUC implementation: first draft /!\ the experimental muc branche of wokkel must be used - bridge: new roomJoined signal - wix: contact list widget is now in a separate file, and manage different kinds of presentation - wix: chat window now manage group chat (first draft, not working yet) - wix: constants are now in a separate class, so then can be accessible from everywhere - wix: new menu to join room (do nothing yet, except entering in a test room) - new plugin for xep 0045 (MUC), use wokkel experimental MUC branch - plugins: the profile is now given for get_handler, cause it can be used internally by a plugin (e.g.: xep-0045 plugin)
author Goffi <goffi@goffi.org>
date Sun, 21 Mar 2010 10:28:55 +1100
parents 86f1f7f6d332
children db0a0f000e37
line wrap: on
line diff
--- a/sat.tac	Sat Mar 06 14:57:23 2010 +1100
+++ b/sat.tac	Sun Mar 21 10:28:55 2010 +1100
@@ -185,7 +185,7 @@
         self.host = host
     
     def availableReceived(self, entity, show=None, statuses=None, priority=0):
-        info (_("presence update for [%s]"), entity)
+        debug (_("presence update for [%(entity)s] (available, show=%(show)s statuses=%(statuses)s priority=%(priority)d)") % {'entity':entity, 'show':show, 'statuses':statuses, 'priority':priority})
         
         if statuses.has_key(None):   #we only want string keys
             statuses["default"] = statuses[None]
@@ -199,6 +199,7 @@
                 int(priority), statuses, self.parent.profile)
     
     def unavailableReceived(self, entity, statuses=None):
+        debug (_("presence update for [%(entity)s] (unavailable, statuses=%(statuses)s)") % {'entity':entity, 'statuses':statuses})
         if statuses and statuses.has_key(None):   #we only want string keys
             statuses["default"] = statuses[None]
             del statuses[None]
@@ -416,7 +417,7 @@
         
         for plugin in self.plugins.iteritems():
             if plugin[1].is_handler:
-                plugin[1].getHandler().setHandlerParent(current)
+                plugin[1].getHandler(profile).setHandlerParent(current)
 
         current.startService()