diff idavoll/pubsub.py @ 25:256dcda26752

Bugfix: use 'event' element instead of 'x' for notifications. Changed adapter registration to reflect name change of backend.IService.
author Ralph Meijer <ralphm@ik.nu>
date Sun, 17 Oct 2004 13:53:01 +0000
parents 884268687229
children fa866793075d
line wrap: on
line diff
--- a/idavoll/pubsub.py	Sun Oct 17 13:51:34 2004 +0000
+++ b/idavoll/pubsub.py	Sun Oct 17 13:53:01 2004 +0000
@@ -208,11 +208,11 @@
 		message = domish.Element((NS_COMPONENT, "message"))
 		message["from"] = self.parent.jabberId
 		message["to"] = recipient
-		x = message.addElement((NS_PUBSUB_EVENT, "x"), NS_PUBSUB_EVENT)
-		items = x.addElement("items")
+		event = message.addElement((NS_PUBSUB_EVENT, "event"), NS_PUBSUB_EVENT)
+		items = event.addElement("items")
 		items["node"] = node
 		items.children.extend(itemlist)
 		self.send(message)
 		
-components.registerAdapter(ComponentServiceFromBackend, backend.IBackendService, component.IService)
+components.registerAdapter(ComponentServiceFromBackend, backend.IService, component.IService)