Exemplo n.º 1
0
    def test_install_packages__one_package(self):
        installer = getToolByName(self.portal, 'portal_quickinstaller')
        installer.uninstallProducts(['abita.development'])
        self.assertFalse(installer.isProductInstalled('abita.development'))

        from sll.basepolicy.upgrades import install_packages
        install_packages(self.portal, 'abita.development')

        self.assertTrue(installer.isProductInstalled('abita.development'))
Exemplo n.º 2
0
    def test_install_packages__one_package(self):
        installer = getToolByName(self.portal, "portal_quickinstaller")
        installer.uninstallProducts(["abita.development"])
        self.assertFalse(installer.isProductInstalled("abita.development"))

        from sll.basepolicy.upgrades import install_packages

        install_packages(self.portal, "abita.development")

        self.assertTrue(installer.isProductInstalled("abita.development"))
Exemplo n.º 3
0
    def test_install_packages__two_packages(self):
        installer = getToolByName(self.portal, 'portal_quickinstaller')
        installer.uninstallProducts(['abita.development', 'hexagonit.socialbutton'])
        self.assertFalse(installer.isProductInstalled('abita.development'))
        self.assertFalse(installer.isProductInstalled('hexagonit.socialbutton'))

        from sll.basepolicy.upgrades import install_packages
        install_packages(self.portal, ['abita.development', 'hexagonit.socialbutton'])

        self.assertTrue(installer.isProductInstalled('abita.development'))
        self.assertTrue(installer.isProductInstalled('hexagonit.socialbutton'))
Exemplo n.º 4
0
    def test_install_packages__two_packages(self):
        installer = getToolByName(self.portal, "portal_quickinstaller")
        installer.uninstallProducts(["abita.development", "hexagonit.socialbutton"])
        self.assertFalse(installer.isProductInstalled("abita.development"))
        self.assertFalse(installer.isProductInstalled("hexagonit.socialbutton"))

        from sll.basepolicy.upgrades import install_packages

        install_packages(self.portal, ["abita.development", "hexagonit.socialbutton"])

        self.assertTrue(installer.isProductInstalled("abita.development"))
        self.assertTrue(installer.isProductInstalled("hexagonit.socialbutton"))
Exemplo n.º 5
0
def upgrade_0_to_1(context):
    """Install collective.folderlogo"""
    install_packages(context, 'collective.folderlogo')