id,summary,reporter,owner,description,type,status,priority,milestone,component,resolution,keywords,cc
22,TypeError thrown in pubsub._onSubscriptions: 'Subscription object is not iterable',mmalone,ralphm,"I'm using idavoll, which is built on top of wokkel, and I'm seeing the following error thrown when I send a request-subscriptions iq:


{{{
2008-09-27 18:07:49-0700 [XmlStream,client] Unhandled Error
	Traceback (most recent call last):
	  File ""/Library/Python/2.5/site-packages/Twisted-8.1.0-py2.5-macosx-10.5-i386.egg/twisted/internet/defer.py"", line 106, in maybeDeferred
	    result = f(*args, **kw)
	  File ""/Library/Python/2.5/site-packages/wokkel-0.4.0-py2.5.egg/wokkel/pubsub.py"", line 713, in _onSubscriptions
	    
	  File ""/Library/Python/2.5/site-packages/Twisted-8.1.0-py2.5-macosx-10.5-i386.egg/twisted/internet/defer.py"", line 195, in addCallback
	    callbackKeywords=kw)
	  File ""/Library/Python/2.5/site-packages/Twisted-8.1.0-py2.5-macosx-10.5-i386.egg/twisted/internet/defer.py"", line 186, in addCallbacks
	    self._runCallbacks()
	--- <exception caught here> ---
	  File ""/Library/Python/2.5/site-packages/Twisted-8.1.0-py2.5-macosx-10.5-i386.egg/twisted/internet/defer.py"", line 328, in _runCallbacks
	    self.result = callback(self.result, *args, **kw)
	  File ""/Library/Python/2.5/site-packages/wokkel-0.4.0-py2.5.egg/wokkel/pubsub.py"", line 705, in toResponse
	    
	exceptions.TypeError: 'Subscription' object is not iterable
}}}

I've attached a patch to wokkel that fixes this issue for me, but I'm not familiar enough with the internals of wokkel or idavoll to know which is really to blame. It looks like an interface changed, and something didn't get updated properly. Anyways, the attached patch fixes things for me.
 ",defect,closed,normal,,generic,fixed,pubsub subscription,
