diff idavoll/pubsub.py @ 98:b9c449f4c167

Removed debugging junk
author Ralph Meijer <ralphm@ik.nu>
date Wed, 24 Nov 2004 20:08:28 +0000
parents cf918d581da5
children b75fcc554358
line wrap: on
line diff
--- a/idavoll/pubsub.py	Tue Nov 23 17:05:21 2004 +0000
+++ b/idavoll/pubsub.py	Wed Nov 24 20:08:28 2004 +0000
@@ -167,7 +167,6 @@
         d.addCallback(self._notify, node_id)
 
     def _notify(self, list, node_id):
-        print list
         for recipient, items in list.items():
             self._notify_recipient(recipient, node_id, items)
 
@@ -207,8 +206,6 @@
             if child.__class__ == domish.Element and child.name == 'item':
                 items.append(child)
 
-        print items
-
         return self.backend.publish(node, items,
                                     jid.JID(iq["from"]).userhostJID())
 
@@ -395,7 +392,6 @@
             if element.name == 'field' and element.uri == NS_X_DATA:
                 options[element["var"]] = str(element.value)
 
-        print options
         return options
 
 components.registerAdapter(ComponentServiceFromNodeCreationService, backend.INodeCreationService, component.IService)
@@ -473,11 +469,8 @@
         reply = domish.Element((NS_PUBSUB, 'pubsub'))
         items = reply.addElement('items')
         items["node"] = node_id
-        try:
-            for r in result:
-                items.addRawXml(r)
-        except Exception, e:
-            print e
+        for r in result:
+            items.addRawXml(r)
 
         return [reply]
 
@@ -514,8 +507,6 @@
                 except KeyError:
                     raise BadRequest
 
-        print item_ids
-
         return self.backend.retract_item(node, item_ids,
                                     jid.JID(iq["from"]).userhostJID())
 
@@ -560,7 +551,6 @@
 
         for subscriber in subscribers:
             message["to"] = subscriber
-            print message.toXml()
             self.send(message)
 
     def onDelete(self, iq):