def setUpZope(self, app, configurationContext): fiveconfigure.debug_mode = True import collective.contentrules.mailtorole xmlconfig.file('configure.zcml', collective.contentrules.mailtorole, context=configurationContext) z2.installProduct(app, 'collective.contentrules.mailtorole')
def setUpZope(self, app, configurationContext): """Set up Zope.""" # Load ZCML import osha.quizzes self.loadZCML(package=osha.quizzes) z2.installProduct(app, 'osha.quizzes') z2.installProduct(app, 'Products.PloneFormGen')
def setUp(self): # Stack a new DemoStorage on top of the one from z2.STARTUP. self['zodbDB'] = zodb.stackDemoStorage(self.get('zodbDB'), name='PloneSubRequestFixture') # Create a new global registry zca.pushGlobalRegistry() self['configurationContext'] = context = zca.stackConfigurationContext( self.get('configurationContext')) # Load out ZCML from zope.configuration import xmlconfig import plone.subrequest xmlconfig.file('testing.zcml', plone.subrequest, context=context) with z2.zopeApp() as app: # Enable virtual hosting z2.installProduct(app, 'Products.SiteAccess') from Products.SiteAccess.VirtualHostMonster import \ VirtualHostMonster vhm = VirtualHostMonster() app._setObject(vhm.getId(), vhm, suppress_events=True) # With suppress_events=False, this is called twice... vhm.manage_afterAdd(vhm, app) # Setup default content app.manage_addFolder('folder1') make_site(app.folder1) app.folder1.manage_addFolder('folder1A') app.folder1.folder1A.manage_addFolder('folder1Ai') app.folder1.manage_addFolder('folder1B') app.manage_addFolder('folder2') make_site(app.folder2) app.folder2.manage_addFolder('folder2A') app.folder2.folder2A.manage_addFolder('folder2Ai space')
def setUpZope(self, app, configurationContext): # Load ZCML for this package import collective.tablepage xmlconfig.file('configure.zcml', collective.tablepage, context=configurationContext) z2.installProduct(app, 'collective.tablepage')
def setUpZope(self, app, configurationContext): """ Setup Zope """ import eea.daviz self.loadZCML(package=eea.daviz) z2.installProduct(app, 'eea.daviz') z2.installProduct(app, 'eea.sparql')
def setUpZope(self, app, configurationContext): import eke.biomarker self.loadZCML(package=eke.biomarker) z2.installProduct(app, 'eke.biomarker') # OK, I'm hopeless confused. If I include EKE_PUBLICATIONS_FIXTURE as a base, then teardown fails. # So, install it here: import eke.publications self.loadZCML(package=eke.publications) z2.installProduct(app, 'eke.publications') # Likewise: import eke.site self.loadZCML(package=eke.site) z2.installProduct(app, 'eke.site') # Likewise: import eke.study self.loadZCML(package=eke.study) z2.installProduct(app, 'eke.study') # Likewise: import eke.ecas self.loadZCML(package=eke.ecas) z2.installProduct(app, 'eke.ecas') import eke.biomarker.tests.base eke.biomarker.tests.base.registerLocalTestData()
def setUpZope(self, app, configurationContext): # Load ZCML import Products.PloneSurvey self.loadZCML(package=Products.PloneSurvey) # Install product and call its initialize() function z2.installProduct(app, PROJECTNAME)
def setUpZope(self, app, configurationContext): # Load ZCML import skc.theme self.loadZCML(package=skc.theme) # Install product and call its initialize() function z2.installProduct(app, PROJECTNAME)
def setUpZope(self, app, configurationContext): # Load ZCML import plone.jsonapi.core xmlconfig.file('configure.zcml', plone.jsonapi.core, context=configurationContext) # Install product and call its initialize() function z2.installProduct(app, 'plone.jsonapi.core')
def setUpZope(self, app, configurationContext): """Set up Zope.""" # Load ZCML self.loadZCML(package=mons.urban.dataimport, name='testing.zcml') for p in self.products: z2.installProduct(app, p)
def setUpZope(self, app, configurationContext): # Load ZCML import collective.ffcentral self.loadZCML(package=collective.ffcentral) # Install product and call its initialize() function z2.installProduct(app, 'collective.ffcentral')
def setUpZope(self, app, configurationContext): # Load ZCML import ploneintranet.suite self.loadZCML(package=ploneintranet.suite) # Install product and call its initialize() function z2.installProduct(app, 'ploneintranet.suite') self.loadZCML(package=collective.workspace) z2.installProduct(app, 'collective.workspace') self.loadZCML(package=collective.z3cform.chosen) self.loadZCML(package=slc.docconv) self.loadZCML(package=collective.documentviewer) # plone social dependencies import ploneintranet.microblog self.loadZCML(package=ploneintranet.microblog) import ploneintranet.activitystream self.loadZCML(package=ploneintranet.activitystream) import ploneintranet.network self.loadZCML(package=ploneintranet.network) import ploneintranet.messaging self.loadZCML(package=ploneintranet.messaging) import ploneintranet.core self.loadZCML(package=ploneintranet.core) # Force microblog to disable async mode !!! import ploneintranet.microblog.statuscontainer ploneintranet.microblog.statuscontainer.MAX_QUEUE_AGE = 0
def setUpZope(self, app, configurationContext): # Load ZCML import rfd.theme self.loadZCML(package=rfd.theme) # Install product and call its initialize() function z2.installProduct(app, PROJECTNAME)
def setUpZope(self, app, configurationContext): # Load ZCML import ploneintranet.pagerank self.loadZCML(package=ploneintranet.pagerank) # Install product and call its initialize() function z2.installProduct(app, 'ploneintranet.pagerank') # dependencies # we're loading all of ploneintranet so we can # use the included demo site for testing import ploneintranet.socialsuite self.loadZCML(package=ploneintranet.socialsuite) import ploneintranet.microblog self.loadZCML(package=ploneintranet.microblog) import ploneintranet.activitystream self.loadZCML(package=ploneintranet.activitystream) import ploneintranet.network self.loadZCML(package=ploneintranet.network) import plone.app.contenttypes self.loadZCML( 'configure.zcml', package=plone.app.contenttypes, ) import ploneintranet.socialtheme self.loadZCML(package=ploneintranet.socialtheme)
def setUpZope(self, app, configurationContext): """Set up Zope.""" # Required by Products.CMFPlone:plone-content to setup defaul plone site. z2.installProduct(app, 'Products.PythonScripts') # Load ZCML import slt.portlet self.loadZCML(package=slt.portlet)
def setUpZope(self, app, configurationContext): # Load ZCML import cmrs.academic self.loadZCML(package=cmrs.academic) # Install product and call its initialize() function z2.installProduct(app, 'cmrs.academic')
def setUpZope(self, app, configurationContext): """Set up Zope.""" # Load ZCML import collective.sassy self.loadZCML(package=collective.sassy) self.loadZCML('testing.zcml', package=collective.sassy) z2.installProduct(app, 'collective.sassy')
def setUpProducts(self, app): """Install all old-style products listed in the the ``products`` tuple of this class. """ for p, config in self.products: z2.installProduct(app, p)
def setUpZope(self, app, configurationContext): # Load ZCML import Products.ATGoogleVideo self.loadZCML(package=Products.ATGoogleVideo) # Install product and call its initialize() function z2.installProduct(app, 'Products.ATGoogleVideo')
def setUpZope(self, app, configurationContext): for locales in self._get_robot_variable('REGISTER_TRANSLATIONS'): if locales and os.path.isdir(locales): from zope.i18n.zcml import registerTranslations registerTranslations(configurationContext, locales) for name in self._get_robot_variable('META_PACKAGES'): if not name in sys.modules: __import__(name) package = sys.modules[name] xmlconfig.file('meta.zcml', package, context=configurationContext) for name in self._get_robot_variable('CONFIGURE_PACKAGES'): if not name in sys.modules: __import__(name) package = sys.modules[name] xmlconfig.file('configure.zcml', package, context=configurationContext) for name in self._get_robot_variable('OVERRIDE_PACKAGES'): if not name in sys.modules: __import__(name) package = sys.modules[name] xmlconfig.includeOverrides( configurationContext, 'overrides.zcml', package=package) for name in self._get_robot_variable('INSTALL_PRODUCTS'): if not name in sys.modules: __import__(name) z2.installProduct(app, name)
def setUpZope(self, app, configurationContext): super(PloneAppContentAT, self).setUpZope(app, configurationContext) import Products.ATContentTypes xmlconfig.file('configure.zcml', Products.ATContentTypes, context=configurationContext) z2.installProduct(app, 'Products.ATContentTypes')
def setUpZope(self, app, configurationContext): # Load ZCML import younglives.research.catalog self.loadZCML(package=younglives.research.catalog) # Install product and call its initialize() function z2.installProduct(app, 'younglives.research.catalog')
def setUpZope(self, app, configurationContext): # Load ZCML for this package # xmlconfig.file('configure.zcml', Products.DateRecurringIndex, # context=configurationContext) # xmlconfig.file('configure.zcml', plone.app.event, # context=configurationContext) z2.installProduct(app, 'Products.DateRecurringIndex') xmlconfig.file('configure.zcml', plone.app.contenttypes, context=configurationContext) xmlconfig.file('configure.zcml', collective.tinymcetiles, context=configurationContext) xmlconfig.file('configure.zcml', plone.app.contentlistingtile, context=configurationContext) xmlconfig.string("""\ <configure package="collective.tinymcetiles" xmlns="http://namespaces.plone.org/plone"> <tile name="dummy.tile" title="Dummy tile" description="dummy" add_permission="cmf.ModifyPortalContent" class=".testing.DummyTile" permission="zope2.View" for="*" /> </configure> """, context=configurationContext)
def setUpZope(self, app, configurationContext): """Set up Zope.""" # Load ZCML self.loadZCML(package=collective.odtdiff, name='testing.zcml') for p in self.products: z2.installProduct(app, p)
def setUpZope(self, app, configurationContext): # Load ZCML import ftw.footer xmlconfig.file('configure.zcml', ftw.footer, context=configurationContext) z2.installProduct(app, 'ftw.footer')
def setUpZope(self, app, configurationContext): # Load ZCML import Products.Carousel self.loadZCML(package=Products.Carousel) import Products.CMFPlacefulWorkflow self.loadZCML(package=Products.CMFPlacefulWorkflow) import Products.OrderableReferenceField self.loadZCML(package=Products.OrderableReferenceField) import Products.RedirectionTool self.loadZCML(package=Products.RedirectionTool) import wildcard.media self.loadZCML(package=wildcard.media) import oxford.intranet.folder self.loadZCML(package=oxford.intranet.folder) import younglives.content self.loadZCML(package=younglives.content) import younglives.homepage self.loadZCML(package=younglives.homepage) import younglives.theme self.loadZCML(package=younglives.theme) import younglives.policy self.loadZCML(package=younglives.policy) # Install product and call its initialize() function z2.installProduct(app, PROJECTNAME)
def setUpZope(self, app, configurationContext): # Patch effectiveDate, so our FtwCalendarwidget is used from ftw.calendarwidget.browser.widgets import FtwCalendarWidget from Products.ATContentTypes.content.base import registerATCT from Products.ATContentTypes.content.document import ATDocument from Products.ATContentTypes.content.document import PROJECTNAME ATDocument.schema['effectiveDate'].widget = FtwCalendarWidget( label='MyDate' ) registerATCT(ATDocument, PROJECTNAME) # Load ZCML xmlconfig.file('configure.zcml', ftw.calendarwidget, context=configurationContext) xmlconfig.file('configure.zcml', collective.js.jqueryui, context=configurationContext) # installProduct() is *only* necessary for packages outside # the Products.* namespace which are also declared as Zope 2 products, # using <five:registerPackage /> in ZCML. z2.installProduct(app, 'ftw.calendarwidget') z2.installProduct(app, 'collective.js.jqueryui')
def setUpZope(self, app, configurationContext): # Load ZCML import collective.indexing self.loadZCML(package=collective.indexing) import collective.solr self.loadZCML(package=collective.solr) installProduct(app, 'collective.indexing')
def setUpZope(self, app, configurationContext): # Load ZCML for this package import rer.sitesearch xmlconfig.file('configure.zcml', rer.sitesearch, context=configurationContext) z2.installProduct(app, 'rer.sitesearch')
def setUpZope(self, app, configurationContext): # Load ZCML import ploneintranet.suite self.loadZCML(package=ploneintranet.suite) # Install product and call its initialize() function z2.installProduct(app, 'ploneintranet.suite') # dependencies import ploneintranet.workspace self.loadZCML(package=ploneintranet.workspace) import collective.workspace self.loadZCML(package=collective.workspace) z2.installProduct(app, 'collective.workspace') import ploneintranet.simplesharing self.loadZCML(package=ploneintranet.simplesharing) import collective.z3cform.chosen self.loadZCML(package=collective.z3cform.chosen) # plone social dependancies import plonesocial.suite self.loadZCML(package=plonesocial.suite) import plonesocial.microblog self.loadZCML(package=plonesocial.microblog) import plonesocial.activitystream self.loadZCML(package=plonesocial.activitystream) import plonesocial.network self.loadZCML(package=plonesocial.network)
def setUpZope(self, app, configurationContext): # prepare installing Products.ATContentTypes import Products.ATContentTypes self.loadZCML(package=Products.ATContentTypes) z2.installProduct(app, 'Products.Archetypes') z2.installProduct(app, 'Products.ATContentTypes') z2.installProduct(app, 'plone.app.blob') # prepare installing plone.app.collection try: pkg_resources.get_distribution('plone.app.collection') z2.installProduct(app, 'plone.app.collection') except pkg_resources.DistributionNotFound: pass # prepare installing plone.app.contenttypes z2.installProduct(app, 'Products.DateRecurringIndex') import plone.app.contenttypes xmlconfig.file( 'configure.zcml', plone.app.contenttypes, context=configurationContext )
def setUpZope(self, app, configurationContext): # Load ZCML for this package import collective.contentrules.subscription xmlconfig.file('configure.zcml', collective.contentrules.subscription, context=configurationContext) z2.installProduct(app, 'collective.contentrules.subscription')
def setUpZope(self, app, configurationContext): import Products.ATContentTypes self.loadZCML(package=Products.ATContentTypes) z2.installProduct(app, 'Products.Archetypes') z2.installProduct(app, 'Products.ATContentTypes') import plone.app.querystring.tests self.loadZCML('configure.zcml', package=plone.app.querystring.tests)
def setUpZope(self, app, configurationContext): # Load ZCML for this package import collective.analyticspanel xmlconfig.file('configure.zcml', collective.analyticspanel, context=configurationContext) z2.installProduct(app, 'collective.analyticspanel')
def setUpZope(self, app, configurationContext): # Load ZCML for this package import collective.jsconfiguration xmlconfig.file('configure.zcml', collective.externalizelink, context=configurationContext) z2.installProduct(app, 'collective.externalizelink')
def setUpZope(self, app, configurationContext): """Set up Zope.""" # Load ZCML import plone.app.hud self.loadZCML(package=plone.app.hud) z2.installProduct(app, "plone.app.hud")
def setUpZope(self, app, configurationContext): if IS_PLONE_5: import plone.app.contenttypes self.loadZCML(package=plone.app.contenttypes) else: # needed by plone.app.linkintegrity under Plone 4.x import plone.app.referenceablebehavior self.loadZCML(package=plone.app.referenceablebehavior) if DEXTERITY_ONLY: import plone.app.contenttypes self.loadZCML(package=plone.app.contenttypes) z2.installProduct(app, 'Products.DateRecurringIndex') if HAS_PFG: import Products.PloneFormGen self.loadZCML(package=Products.PloneFormGen) z2.installProduct(app, 'Products.PloneFormGen') import collective.cover self.loadZCML(package=collective.cover) if 'virtual_hosting' not in app.objectIds(): # If ZopeLite was imported, we have no default virtual # host monster from Products.SiteAccess.VirtualHostMonster \ import manage_addVirtualHostMonster manage_addVirtualHostMonster(app, 'virtual_hosting')
def setUpZope(self, app, configurationContext): # Load ZCML import collective.badge xmlconfig.file('configure.zcml', collective.badge, context=configurationContext) z2.installProduct(app, 'collective.workspace')
def setUpZope(self, app, configurationContext): super(PloneAppQuerystringLayer, self).setUpZope(app, configurationContext) z2.installProduct(app, 'plone.app.querystring') import plone.app.querystring xmlconfig.file('configure.zcml', plone.app.querystring, context=configurationContext)
def setUpZope(self, app, configurationContext): """Set up Zope.""" # Load ZCML import abita.policy self.loadZCML(package=abita.policy) # Required by Products.CMFPlone:plone-content to setup defaul plone site. z2.installProduct(app, 'Products.PythonScripts')
def setUpZope(self, app, configurationContext): """Setup Zope""" self.loadZCML(package=plone.restapi) self.loadZCML(package=eea.volto.slate) z2.installProduct(app, "plone.restapi") z2.installProduct(app, "eea.volto.slate")
def setUpZope(self, app, configurationContext): # Load any other ZCML that is required for your tests. # The z3c.autoinclude feature is disabled in the Plone fixture base # layer. z2.installProduct(app, "Products.Archetypes") z2.installProduct(app, "Products.ATContentTypes") self.loadZCML(package=cs.at.gipuzkoairekia)
def setUpZope(self, app, configurationContext): import plone.restapi xmlconfig.file("configure.zcml", plone.restapi, context=configurationContext) xmlconfig.file("testing.zcml", plone.restapi, context=configurationContext) self.loadZCML(package=collective.MockMailHost) z2.installProduct(app, "plone.restapi")
def setUpProducts(self, app): """Install all old-style products listed in the the ``products`` tuple of this class. """ for p, config in self.products: if config.get('install', True): z2.installProduct(app, p)
def setUpZope(self, app, configurationContext): # Load ZCML for this package import rer.cookieconsent import collective.regjsonify self.loadZCML(package=collective.regjsonify) # xmlconfig registration below only needed for Plone 4.2 compatibility self.loadZCML(package=rer.cookieconsent) z2.installProduct(app, 'rer.cookieconsent')
def setUpZope(self, app, configurationContext): # Install product and call its initialize() function z2.installProduct(app, 'Products.Five') import plone.app.z3cform fiveconfigure.debug_mode = True self.loadZCML(name='testing.zcml', package=plone.app.z3cform.tests) fiveconfigure.debug_mode = False
def setUpZope(self, app, configurationContext): import plone.app.stagingbehavior import plone.app.versioningbehavior import Products.CMFPlacefulWorkflow self.loadZCML(package=plone.app.stagingbehavior) self.loadZCML(package=plone.app.versioningbehavior) self.loadZCML(package=Products.CMFPlacefulWorkflow) z2.installProduct(app, 'Products.CMFPlacefulWorkflow')
def setUpZope(self, app, configurationContext): for dep in _testDeps: __import__(dep) self.loadZCML(package=sys.modules[dep]) z2.installProduct(app, dep) import edrnsite.policy self.loadZCML(package=edrnsite.policy) z2.installProduct(app, 'edrnsite.policy')
def setUpZope(self, app, configurationContext): self.loadZCML(package=ploneintranet.userprofile) self.loadZCML(package=ploneintranet.microblog) # Force status updates to be immediately written ploneintranet.microblog.statuscontainer.MAX_QUEUE_AGE = 0 self.loadZCML(package=ploneintranet.docconv.client) self.loadZCML(package=ploneintranet.theme) z2.installProduct(app, 'Products.membrane')
def setUpZope(self, app, configurationContext): """ Setup Zope """ import plone.app.dexterity self.loadZCML(package=plone.app.dexterity) import eea.dexterity.indicators self.loadZCML(package=eea.dexterity.indicators) z2.installProduct(app, 'eea.dexterity.indicators')
def setUpZope(self, app, configurationContext): # Load ZCML self.loadZCML(package=Products.ATExtensions) self.loadZCML(package=plone.app.iterate) self.loadZCML(package=bika.lims) # Required by Products.CMFPlone:plone-content z2.installProduct(app, 'Products.PythonScripts') z2.installProduct(app, 'bika.lims')
def setUpZope(self, app, configurationContext): # Load ZCML import Products.CompositePack self.loadZCML(package=Products.CompositePack) # Install product and call its initialize() function z2.installProduct(app, 'Products.kupu') z2.installProduct(app, 'Products.CompositePack')
def setUpZope(self, app, configurationContext): self.loadZCML(package=Products.Collage) if HAS_LINGUA_PLONE: self.loadZCML(package=Products.LinguaPlone) z2.installProduct(app, 'Products.LinguaPlone') z2.installProduct(app, 'Products.Collage')
def setUpZope(self, app, configurationContext): import Products.Archetypes self.loadZCML(package=Products.Archetypes) z2.installProduct(app, 'Products.Archetypes') setupSampleTypeProfile() import plone.app.referenceablebehavior self.loadZCML(package=plone.app.referenceablebehavior) z2.installProduct(app, 'plone.app.referenceablebehavior')
def setUpZope(self, app, configurationContext): import cs.portlet.calendar xmlconfig.file('configure.zcml', cs.portlet.calendar, context=configurationContext) self.loadZCML(package=collective.MockMailHost) z2.installProduct(app, 'cs.portlet.calendar')
def setUpZope(self, app, configurationContext): """Set up Zope. Only load ZCML files. """ self.setUpZCMLFiles() for z2Product in self.additional_z2_products: z2.installProduct(app, z2Product)
def setUpZope(self, app, configurationContext): # Load ZCML import Products.PloneServicesCenter self.loadZCML(package=Products.PloneServicesCenter) # Install product and call its initialize() function z2.installProduct(app, 'Products.ArchAddOn') z2.installProduct(app, 'Products.PloneServicesCenter')
def setUpZope(self, app, configurationContext): # load ZCML import tx.slider xmlconfig.file('configure.zcml', tx.slider, context=configurationContext) import collective.js.jqueryui self.loadZCML(package=collective.js.jqueryui) z2.installProduct(app, 'tx.slider')
def setUpZope(self, app, configurationContext): # Load ZCML for this package import customizations xmlconfig.file('configure.zcml', customizations, context=configurationContext) installProduct(app, 'customizations')