# HG changeset patch # User Ralph Meijer # Date 1297628767 -3600 # Node ID 55b45c7dccb4c6fcf0bc6f5c48c4a2b967280616 # Parent 0eafdced5f240eb79dedc9b0a9962d0240a7784e Upon gateway subscription to the root node, don't retrieve items. The root node is always a collection node, which cannot have items by itself. diff -r 0eafdced5f24 -r 55b45c7dccb4 idavoll/gateway.py --- a/idavoll/gateway.py Sat Oct 16 22:53:23 2010 +0200 +++ b/idavoll/gateway.py Sun Feb 13 21:26:07 2011 +0100 @@ -416,6 +416,8 @@ def subscribeOrItems(hasCallbacks): if hasCallbacks: + if not nodeIdentifier: + return None d = self.items(jid, nodeIdentifier, 1) d.addCallback(callbackForLastItem) else: