comparison src/plugins/plugin_misc_groupblog.py @ 618:e2c33a16d235

plugin groupblog: fixed bad inialisation check
author Goffi <goffi@goffi.org>
date Mon, 17 Jun 2013 13:30:57 +0200
parents dafdbe28ca2f
children 1de01a2154e2
comparison
equal deleted inserted replaced
617:dafdbe28ca2f 618:e2c33a16d235
142 if set([NS_PUBSUB_AUTO_CREATE, NS_PUBSUB_CREATOR_JID_CHECK]).issubset(_disco.features): 142 if set([NS_PUBSUB_AUTO_CREATE, NS_PUBSUB_CREATOR_JID_CHECK]).issubset(_disco.features):
143 info(_("item-access powered pubsub service found: [%s]") % entity.full()) 143 info(_("item-access powered pubsub service found: [%s]") % entity.full())
144 client.item_access_pubsub = entity 144 client.item_access_pubsub = entity
145 client._item_access_pubsub_pending.callback(None) 145 client._item_access_pubsub_pending.callback(None)
146 146
147 if "_item_access_pubsub_pending" in client: 147 if hasattr(client, "_item_access_pubsub_pending"):
148 #XXX: we need to wait for item access pubsub service check 148 #XXX: we need to wait for item access pubsub service check
149 yield client._item_access_pubsub_pending 149 yield client._item_access_pubsub_pending
150 del client._item_access_pubsub_pending 150 del client._item_access_pubsub_pending
151 151
152 if not client.item_access_pubsub: 152 if not client.item_access_pubsub: