changeset 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 4f3bbefc6fad
children c77fdb7ef161
files idavoll/pubsub.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
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)