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