Exemple #1
0
    def setUp(self):
        from Products.CMFCore.ActionsTool import ActionsTool

        site = DummySite('site')
        site._setObject('portal_actions', ActionsTool('portal_actions'))
        self._obj = site.portal_actions
        self._BODY = _ACTIONSTOOL_BODY
Exemple #2
0
    def setUp(self):
        from Products.CMFCore.ActionsTool import ActionsTool

        PlacelessSetup.setUp(self)
        zcml.load_config('meta.zcml', Products.Five)
        zcml.load_config('configure.zcml', Products.CMFCore.exportimport)

        site = DummySite('site')
        site._setObject('portal_actions', ActionsTool('portal_actions'))
        self._obj = site.portal_actions
        self._XML = _ACTIONSTOOL_XML
Exemple #3
0
    def setUp(self):
        import Products.CMFCore.exportimport
        from Products.CMFCore.ActionsTool import ActionsTool

        BodyAdapterTestCase.setUp(self)
        zcml.load_config('configure.zcml', Products.CMFCore.exportimport)

        site = DummySite('site')
        site._setObject('portal_actions', ActionsTool('portal_actions'))
        self._obj = site.portal_actions
        self._BODY = _ACTIONSTOOL_BODY
Exemple #4
0
    def setUp(self):

        SecurityRequestTest.setUp(self)

        root = self.root
        root._setObject('portal_actions', ActionsTool())
        root._setObject('portal_url', URLTool())
        root._setObject('foo', URLTool())
        root._setObject('portal_membership', MembershipTool())
        root._setObject('portal_types', TypesTool())
        self.tool = root.portal_actions
        self.tool.action_providers = ('portal_actions', )
Exemple #5
0
    def setUp(self):
        from Products.CMFCore.interfaces import IActionsTool
        from Products.CMFCore.ActionsTool import ActionsTool

        BodyAdapterTestCase.setUp(self)
        site = DummySite('site')
        site._setObject('portal_actions', ActionsTool('portal_actions'))
        self._obj = site.portal_actions
        self._BODY = _ACTIONSTOOL_BODY

        # utility registration
        sm = getSiteManager()
        sm.registerUtility(self._obj, IActionsTool)
Exemple #6
0
    def setUp(self):
        from Products.CMFCore.ActionsTool import ActionsTool

        self._obj = ActionsTool('portal_actions')
        self._BODY = _ACTIONSTOOL_BODY
        getSiteManager().registerUtility(self._obj, IActionsTool)
Exemple #7
0
    def _makeOne(self, *args, **kw):
        from Products.CMFCore.ActionsTool import ActionsTool

        return ActionsTool(*args, **kw)