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): 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)