fix runtime error in pubsub group reset
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Tue, 17 Apr 2012 18:59:45 +0000 (20:59 +0200)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Tue, 17 Apr 2012 18:59:45 +0000 (20:59 +0200)
omf/omf_slicemgr.py

index 4762426..7f6e8b0 100644 (file)
@@ -90,8 +90,9 @@ class BaseClient(object):
     def presence(self, m):
         p = domish.Element(("jabber:client", "presence"))
         p['from'], p['to'] = m['to'], m['from']
-        presence.addElement("show", content="dnd")
-        presence.addElement("status", content="man at work")
+        # initially read presence.addElement, my wild guess.. -- Thierry
+        p.addElement("show", content="dnd")
+        p.addElement("status", content="man at work")
         self.xmlstream.send(p)
 
     def message_chat(self, m):