def ensure_upgraded(package_name): """Make sure the given p_package_name is upgraded, this is useful when some code will rely on fact that a record is in the registry or so. profile_name must be like "collective.documentgenerator", we will turn it into a portal_setup compliant profile name.""" from imio.migrator.migrator import Migrator migrator = Migrator(api.portal.get()) migrator.upgradeProfile("profile-" + package_name + ":default")
def __init__(self, context): Migrator.__init__(self, context)
def __init__(self, context): Migrator.__init__(self, context) self.registry = getUtility(IRegistry) self.catalog = api.portal.get_tool('portal_catalog') self.imf = self.portal['incoming-mail'] self.omf = self.portal['outgoing-mail']
def __init__(self, context): Migrator.__init__(self, context) self.catalog = api.portal.get_tool('portal_catalog')
def __init__(self, context): Migrator.__init__(self, context) self.imf = self.portal['incoming-mail'] self.omf = self.portal['outgoing-mail']
def __init__(self, context): Migrator.__init__(self, context) self.registry = getUtility(IRegistry)
def __init__(self, context): Migrator.__init__(self, context) self.registry = getUtility(IRegistry) self.catalog = api.portal.get_tool('portal_catalog')
def __init__(self, context): Migrator.__init__(self, context) self.pc = self.portal.portal_catalog self.ps = self.portal.portal_setup