comparison src/plugins/plugin_misc_groupblog.py @ 2148:a543eda2c923

core (memory/disco): getInfos now handle node + use client instead of profile in many methods
author Goffi <goffi@goffi.org>
date Sun, 12 Feb 2017 20:43:20 +0100
parents 33c8c4973743
children 40dd9eb2692c
comparison
equal deleted inserted replaced
2147:bca699faf416 2148:a543eda2c923
69 return GroupBlog_handler() 69 return GroupBlog_handler()
70 70
71 @defer.inlineCallbacks 71 @defer.inlineCallbacks
72 def profileConnected(self, client): 72 def profileConnected(self, client):
73 try: 73 try:
74 yield self.host.checkFeatures((NS_PUBSUB_GROUPBLOG,), profile=client.profile) 74 yield self.host.checkFeatures(client, (NS_PUBSUB_GROUPBLOG,))
75 except exceptions.FeatureNotFound: 75 except exceptions.FeatureNotFound:
76 client.server_groupblog_available = False 76 client.server_groupblog_available = False
77 log.warning(_(u"Server is not able to manage item-access pubsub, we can't use group blog")) 77 log.warning(_(u"Server is not able to manage item-access pubsub, we can't use group blog"))
78 else: 78 else:
79 client.server_groupblog_available = True 79 client.server_groupblog_available = True