Esempio n. 1
0
    def test_disable(self):
        from collective.lineage.interfaces import IChildSite

        utils.enable_childsite(self.childsite)
        self.assertTrue(IChildSite.providedBy(self.childsite))
        utils.disable_childsite(self.childsite)
        self.assertFalse(IChildSite.providedBy(self.childsite))
Esempio n. 2
0
    def disable(self):
        """Disable a lineage subsite on this context.
        """
        disable_childsite(self.context)

        # redirect
        self.request.response.redirect(self.context.absolute_url())
    def test_disable(self):
        from collective.lineage.interfaces import IChildSite

        utils.enable_childsite(self.childsite)
        self.assertTrue(IChildSite.providedBy(self.childsite))
        utils.disable_childsite(self.childsite)
        self.assertFalse(IChildSite.providedBy(self.childsite))
Esempio n. 4
0
    def disable(self):
        """Disable a lineage subsite on this context.
        """
        disable_childsite(self.context)

        # redirect
        self.request.response.redirect(self.context.absolute_url())