From 6556d01cbe4d500e7e99abcd88f70e2023215d74 Mon Sep 17 00:00:00 2001 From: Dimitur Kirov Date: Sat, 8 Apr 2006 15:39:37 +0000 Subject: [PATCH] change(s) from xmpppy --- src/common/xmpp/debug.py | 3 +++ src/common/xmpp/features.py | 2 +- src/common/xmpp/features_nb.py | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/common/xmpp/debug.py b/src/common/xmpp/debug.py index a3cfd513e..9a238aace 100644 --- a/src/common/xmpp/debug.py +++ b/src/common/xmpp/debug.py @@ -415,3 +415,6 @@ class Debug: return 0 DBG_ALWAYS='always' + +##Uncomment this to effectively disable all debugging and all debugging overhead. +#Debug=NoDebug diff --git a/src/common/xmpp/features.py b/src/common/xmpp/features.py index 724623166..8fad7fc24 100644 --- a/src/common/xmpp/features.py +++ b/src/common/xmpp/features.py @@ -37,7 +37,7 @@ def _discover(disp,ns,jid,node=None,fb2b=0,fb2a=1): and if it doesnt support browse (or fb2b is not true) fall back to agents protocol (if gb2a is true). Returns obtained info. Used internally. """ iq=Iq(to=jid,typ='get',queryNS=ns) - if node: iq.setAttr('node',node) + if node: iq.setQuerynode(node) rep=disp.SendAndWaitForResponse(iq) if fb2b and not isResultNode(rep): rep=disp.SendAndWaitForResponse(Iq(to=jid,typ='get',queryNS=NS_BROWSE)) # Fallback to browse if fb2a and not isResultNode(rep): rep=disp.SendAndWaitForResponse(Iq(to=jid,typ='get',queryNS=NS_AGENTS)) # Fallback to agents diff --git a/src/common/xmpp/features_nb.py b/src/common/xmpp/features_nb.py index a12a6bcab..453f7229b 100644 --- a/src/common/xmpp/features_nb.py +++ b/src/common/xmpp/features_nb.py @@ -33,7 +33,7 @@ def _discover(disp, ns, jid, node = None, fb2b=0, fb2a=1, cb=None): (if gb2a is true). Returns obtained info. Used internally. """ iq=Iq(to=jid, typ='get', queryNS=ns) if node: - iq.setAttr('node',node) + iq.setQuerynode(node) def _on_resp1(resp): if fb2b and not isResultNode(resp): # Fallback to browse