Exemple #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")
 def __init__(self, context):
     Migrator.__init__(self, context)
Exemple #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']
Exemple #4
0
 def __init__(self, context):
     Migrator.__init__(self, context)
     self.catalog = api.portal.get_tool('portal_catalog')
Exemple #5
0
 def __init__(self, context):
     Migrator.__init__(self, context)
Exemple #6
0
 def __init__(self, context):
     Migrator.__init__(self, context)
     self.imf = self.portal['incoming-mail']
     self.omf = self.portal['outgoing-mail']
Exemple #7
0
 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')
Exemple #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')
 def __init__(self, context):
     Migrator.__init__(self, context)
     self.registry = getUtility(IRegistry)
Exemple #12
0
 def __init__(self, context):
     Migrator.__init__(self, context)
     self.registry = getUtility(IRegistry)
     self.catalog = api.portal.get_tool('portal_catalog')