Beispiel #1
0
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")
Beispiel #2
0
 def __init__(self, context):
     Migrator.__init__(self, context)
Beispiel #3
0
 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']
Beispiel #4
0
 def __init__(self, context):
     Migrator.__init__(self, context)
     self.catalog = api.portal.get_tool('portal_catalog')
Beispiel #5
0
 def __init__(self, context):
     Migrator.__init__(self, context)
Beispiel #6
0
 def __init__(self, context):
     Migrator.__init__(self, context)
     self.imf = self.portal['incoming-mail']
     self.omf = self.portal['outgoing-mail']
Beispiel #7
0
 def __init__(self, context):
     Migrator.__init__(self, context)
     self.registry = getUtility(IRegistry)
Beispiel #8
0
 def __init__(self, context):
     Migrator.__init__(self, context)
     self.registry = getUtility(IRegistry)
     self.catalog = api.portal.get_tool('portal_catalog')
Beispiel #9
0
 def __init__(self, context):
     Migrator.__init__(self, context)
     self.pc = self.portal.portal_catalog
     self.ps = self.portal.portal_setup
 def __init__(self, context):
     Migrator.__init__(self, context)
     self.catalog = api.portal.get_tool('portal_catalog')
Beispiel #11
0
 def __init__(self, context):
     Migrator.__init__(self, context)
     self.registry = getUtility(IRegistry)
Beispiel #12
0
 def __init__(self, context):
     Migrator.__init__(self, context)
     self.registry = getUtility(IRegistry)
     self.catalog = api.portal.get_tool('portal_catalog')