Beispiel #1
0
 def tearDownZope(self, app):
     # Uninstall products installed above
     z2.uninstallProduct(app, 'Products.PloneFormGen')
     z2.uninstallProduct(app, 'Products.TemplateFields')
     z2.uninstallProduct(app, 'Products.TALESField')
     z2.uninstallProduct(app, 'Products.PythonField')
     z2.uninstallProduct(app, 'Products.membrane')        
Beispiel #2
0
    def setUpZope(self, app, configurationContext):
        # Load ZCML
        import plone.app.blocks
        xmlconfig.file(
            'configure.zcml',
            plone.app.blocks,
            context=configurationContext
        )

        import plone.app.contenttypes
        xmlconfig.file(
            'configure.zcml',
            plone.app.contenttypes,
            context=configurationContext
        )
        import adhocracy.plone
        xmlconfig.file(
            'configure.zcml',
            adhocracy.plone,
            context=configurationContext
        )

        # Install products that use an old-style initialize() function
        z2.installProduct(app, 'Products.DateRecurringIndex')

#    def tearDownZope(self, app):
#        # Uninstall products installed above
        z2.uninstallProduct(app, 'Products.DateRecurringIndex')
Beispiel #3
0
    def tearDownPloneSite(self, portal):

        # not implemented yet
        #applyProfile(portal, 'Products.Doormat:uninstall')

        # plone.app.contenttypes needs plone.app.event, who needs this one.
        # https://github.com/plone/plone.app.event/issues/81
        z2.uninstallProduct(portal, 'Products.DateRecurringIndex')
Beispiel #4
0
    def tearDownZope(self, app):

        handle = DAVFS(WEBDAV_URL, credentials=dict(username=WEBDAV_USERNAME,
                                                    password=WEBDAV_PASSWORD))
        if handle.exists(self.testing_directory):
            handle.removedir(
                self.testing_directory, recursive=True, force=True)
        z2.uninstallProduct(app, 'xmldirector.plonecore')
Beispiel #5
0
    def tearDownZope(self, app):
        # Uninstall old-style Products
        z2.uninstallProduct(app, 'Products.DateRecurringIndex')

        # reset OS TZ
        if self.ostz:
            os.environ['TZ'] = self.ostz
        elif 'TZ' in os.environ:
            del os.environ['TZ']
    def test_update_when_not_installed(self):
        app = self.portal.aq_parent
        z2.uninstallProduct(app, "collective.flattr")
        from Products.CMFCore.utils import getToolByName

        setup = getToolByName(self.portal, "portal_setup")
        setup.runAllImportStepsFromProfile("profile-collective.flattr:uninstall")

        self.viewlet.update()
        self.assertFalse(self.viewlet.show)
    def tearDownZope(self, app):

        handle = get_fs_wrapper(WEBDAV_URL, credentials=dict(username=WEBDAV_USERNAME,
                                                             password=WEBDAV_PASSWORD))
        if handle.exists(self.testing_directory):
            try:
                handle.removedir(
                    self.testing_directory, recursive=True, force=True)
            except Exception as e:
                LOG.error('tearDownZope() failed ({})'.format(e))
        z2.uninstallProduct(app, 'xmldirector.plonecore')
Beispiel #8
0
 def tearDownZope(self, app):
     """ Tear down test instance """
     # Uninstall products installed above
     z2.uninstallProduct(app, 'Products.PloneFormGen')
     z2.uninstallProduct(app, 'Products.TemplateFields')
     z2.uninstallProduct(app, 'Products.TALESField')
     z2.uninstallProduct(app, 'Products.PythonField')
Beispiel #9
0
    def tearDownProducts(self, app):
        """Uninstall all old-style products listed in the the ``products``
        tuple of this class.
        """
        for p, config in reversed(self.products):
            z2.uninstallProduct(app, p)

        # Clean up Wicked turds
        # XXX: This may tear down too much state
        try:
            from wicked.fieldevent import meta
            meta.cleanUp()
        except ImportError:
            pass
    def test_update_not_installed(self):
        app = self.portal.aq_parent
        reg = getUtility(IRegistry).forInterface(ICollectiveFlattr)
        reg.base_url = u'http://example.com'
        from plone.testing import z2
        z2.uninstallProduct(app, 'collective.flattr')
        from Products.CMFCore.utils import getToolByName
        setup = getToolByName(self.portal, 'portal_setup')
        setup.runAllImportStepsFromProfile(
            'profile-collective.flattr:uninstall')

        r = self.renderer(context=self.portal, assignment=flattrportlet.Assignment())
        r = r.__of__(self.folder)

        r.update()
        self.assertEquals(r.base_url, u'http://nohost')
Beispiel #11
0
 def tearDownZope(self, app):
     try:
         pkg_resources.get_distribution('plone.app.collection')
         z2.uninstallProduct(app, 'plone.app.collection')
     except pkg_resources.DistributionNotFound:
         pass
     z2.uninstallProduct(app, 'plone.app.blob')
     z2.uninstallProduct(app, 'Products.ATContentTypes')
     z2.uninstallProduct(app, 'Products.Archetypes')
Beispiel #12
0
 def tearDownZope(self, app):
     # reset sync mode
     import ploneintranet.microblog.statuscontainer
     ploneintranet.microblog.statuscontainer.MAX_QUEUE_AGE = 1000
     # Uninstall product
     z2.uninstallProduct(app, 'ploneintranet.suite')
     z2.uninstallProduct(app, 'collective.indexing')
     z2.uninstallProduct(app, 'Products.membrane')
 def tearDownZope(self, app):
     # Uninstall product
     z2.uninstallProduct(app, 'younglives.research.types')
Beispiel #14
0
 def tearDownZope(self, app):
     z2.uninstallProduct(app, 'plone.app.collection')
     z2.uninstallProduct(app, 'plone.app.blob')
     z2.uninstallProduct(app, 'Products.ATContentTypes')
     z2.uninstallProduct(app, 'Products.Archetypes')
 def tearDownZope(self, app):
     """Tear down Zope."""
     z2.uninstallProduct(app, 'ploneintranet.attachments')
 def tearDownZope(self, app):
     # Uninstall product
     z2.uninstallProduct(app, "Products.EasyNewsletter")
Beispiel #17
0
 def tearDownZope(self, app):
     """Tear down Zope."""
     z2.uninstallProduct(app, 'test.template')
Beispiel #18
0
 def tearDownZope(self, app):
     """Tear down Zope."""
     z2.uninstallProduct(app, 'Products.DateRecurringIndex')
     z2.uninstallProduct(app, 'plone.app.contenttypes')
     z2.uninstallProduct(app, 'plone.app.multilingual')
     z2.uninstallProduct(app, 'genweb.controlpanel')
     z2.uninstallProduct(app, 'genweb.theme')
     z2.uninstallProduct(app, 'genweb.portlets')
     z2.uninstallProduct(app, 'genweb.banners')
     z2.uninstallProduct(app, 'genweb.serveistic')
Beispiel #19
0
 def tearDownZope(self, app):
     z2.uninstallProduct(app, 'plone.app.imaging')
Beispiel #20
0
 def tearDownZope(self, app):
     """Tear down Zope."""
     z2.uninstallProduct(app, 'ade25.assetmanager')
Beispiel #21
0
 def tearDownZope(self, app):
     z2.uninstallProduct(app, 'plone.app.blob')
     z2.uninstallProduct(app, 'Products.LinguaPlone')
Beispiel #22
0
 def tearDownZope(self, app):
     # Uninstall product
     z2.uninstallProduct(app, "senaite.lims")
 def tearDownZope(self, app):
     z2.uninstallProduct(app, 'collective.jstraining')
Beispiel #24
0
 def tearDownZope(self, app):
     """ Uninstall Zope
     """
     z2.uninstallProduct(app, 'eea.daviz')
     z2.uninstallProduct(app, 'eea.sparql')
Beispiel #25
0
 def tearDownZope(self, app):
     # Uninstall products installed above
     z2.uninstallProduct(app, 'Products.DateRecurringIndex')
Beispiel #26
0
 def tearDownZope(self, app):
     # Uninstall product and call its uninstall() function
     z2.uninstallProduct(app, 'plone.app.widgets.tests.example')
Beispiel #27
0
 def tearDownZope(self, app):
     """Tear down Zope."""
     z2.uninstallProduct(app, 'dps.sitetheme')
Beispiel #28
0
 def tearDownZope(self, app):
     z2.uninstallProduct(app, 'pmr2.notification')
Beispiel #29
0
 def tearDownZope(self, app):
     """ Uninstall Zope
     """
     z2.uninstallProduct(app, 'eea.faceted.inheritance')
Beispiel #30
0
 def tearDownZope(self, app):
     z2.uninstallProduct(app, 'eke.study')
Beispiel #31
0
 def tearDownZope(self, app):
     """Tear down Zope."""
     z2.uninstallProduct(app, 'Products.TinyMCE')
Beispiel #32
0
 def tearDownZope(self, app):
     z2.uninstallProduct(app, 'plone.app.blob')
Beispiel #33
0
 def tearDownZope(self, app):
     # Uninstall product
     z2.uninstallProduct(app, PROJECTNAME)
Beispiel #34
0
 def tearDownZope(self, app):
     """ Uninstall Zope
     """
     z2.uninstallProduct(app, 'eea.forms')
Beispiel #35
0
 def tearDownZope(self, app):
     # Uninstall product
     z2.uninstallProduct(app, 'ploneintranet.pagerank')
Beispiel #36
0
 def tearDownZope(self, app):
     """Tear down Zope."""
     z2.uninstallProduct(app, 'imio.helpers')
Beispiel #37
0
 def tearDownZope(self, app):
     # Uninstall product
     z2.uninstallProduct(app, 'cmrs.academic')
Beispiel #38
0
 def tearDownZope(self, app):
     """Tear down Zope."""
     z2.uninstallProduct(app, 'Products.PloneFormGen')
Beispiel #39
0
 def tearDownZope(self, app):
     """Tear down Zope."""
     z2.uninstallProduct(app, 'plone.contribute')
Beispiel #40
0
 def tearDownZope(self, app):
     """Tear down Zope."""
     z2.uninstallProduct(app, 'osha.quizzes')
 def tearDownZope(self, app):
     """Tear down Zope."""
     z2.uninstallProduct(app, 'collective.downloadtracker')
Beispiel #42
0
 def tearDownZope(self, app):
     """Tear down Zope."""
     z2.uninstallProduct(app, 'collective.downloadtracker')
 def tearDownZope(self, app):
     """Tear down Zope."""
     z2.uninstallProduct(app, 'redturtle.gritterize')
Beispiel #44
0
 def tearDownZope(self, app):
     # Uninstall product
     z2.uninstallProduct(app, 'collective.ffcentral')
Beispiel #45
0
 def tearDownZope(self, app):
     z2.uninstallProduct(app, 'edrn.rdf')
     self.testDatabase.close()
     del self.testDatabase
Beispiel #46
0
 def tearDownZope(self, app):
     # Uninstall products installed above
     z2.uninstallProduct(app, 'collective.workspace')
 def tearDownZope(self, app):
     z2.uninstallProduct(app, 'Products.AROfficeTransforms')
     z2.uninstallProduct(app, 'Products.DateRecurringIndex')
     z2.uninstallProduct(app, 'Products.EasyNewsletter')
Beispiel #48
0
 def tearDownZope(self, app):
     """Tear down Zope."""
     z2.uninstallProduct(app, 'ploneintranet.docconv.client')
Beispiel #49
0
 def tearDownZope(self, app):
     """Tear down Zope."""
     z2.uninstallProduct(app, 'ploneintranet.network')
Beispiel #50
0
 def tearDownZope(self, app):
     # Uninstall product
     z2.uninstallProduct(app, 'collective.js.jqueryui')
     z2.uninstallProduct(app, 'collective.jqueryuithememanager')
Beispiel #51
0
 def tearDownZope(self, app):
     # Uninstall product
     z2.uninstallProduct(app, 'plone.jsonapi.core')
Beispiel #52
0
 def tearDownZope(self, app):
     # Uninstall product
     z2.uninstallProduct(app, 'ploneintranet.suite')
Beispiel #53
0
 def tearDownZope(self, app):
     # Uninstall product
     z2.uninstallProduct(app, PROJECTNAME)
Beispiel #54
0
 def tearDownZope(self, app):
     # Uninstall product
     z2.uninstallProduct(app, 'plone.formwidget.datetime.at.tests.examples')