Esempio n. 1
0
 def setUp(self):
     self.portal = self.layer['portal']
     self.adapter = LikeControlPanelAdapter(self.portal)
     setRoles(self.portal, TEST_USER_ID, ['Manager'])
     self.setup_content(self.portal)
     alsoProvides(self.portal.REQUEST, ISocialLikeLayer)
     self.plugins = dict(getUtilitiesFor(IPlugin))
     self.plugin = self.plugins[name]
 def setUp(self):
     self.portal = self.layer['portal']
     self.controlpanel = self.portal['portal_controlpanel']
     self.adapter = LikeControlPanelAdapter(self.portal)
     self.sheet = self.portal.portal_properties.sc_social_likes_properties
Esempio n. 3
0
 def configs(self):
     adapter = LikeControlPanelAdapter(self.portal)
     return adapter