Pass JID objects to API callbacks and not strings.

This commit is contained in:
Lance Stout 2012-04-06 15:22:36 -04:00
parent 9c61c2882f
commit 83c5a4cd2f

View file

@ -116,6 +116,8 @@ class APIRegistry(object):
else:
jid = jid.full
jid = JID(jid)
handler = self._handlers[ctype][op]['node'].get((jid, node), None)
if handler is None:
handler = self._handlers[ctype][op]['jid'].get(jid, None)