# -*- coding: utf-8 # init """Feedmoot client""" from FeedmootClient import FeedmootClient from Products.iva.Features import _FEATURES from Products.CMFCore.DirectoryView import registerDirectory def enable_feedmoot(self): """ enable feedmoot """ client = FeedmootClient() if not hasattr(self.aq_base, client.id): self._setObject(client.id, client) _FEATURES['feedmoot'] = {'prettyName': 'Feedmoot client', 'skins_folder': 'modules/feedmoot/feedmoot_www', 'desc': __doc__, 'install_method': enable_feedmoot, 'management': 'manage_feedmoot_configure', 'toolid': 'feedmoot'} registerDirectory('../../modules/feedmoot/feedmoot_www', globals())