Ejemplo n.º 1
0
    def test_reimport_profile(self, getToolByName):
        from abita.utils.utils import reimport_profile

        reimport_profile(self.portal, "PROFILE", "NAME")
        getToolByName().runImportStepFromProfile.assert_called_with(
            "PROFILE", "NAME", run_dependencies=False, purge_old=False
        )
Ejemplo n.º 2
0
def reimport_workflow(context):
    """Update workflow"""
    reimport_profile(context, PROFILE_ID, 'workflow')
Ejemplo n.º 3
0
def reimport_typeinfo(context):
    """Update typeinfo"""
    reimport_profile(context, PROFILE_ID, 'typeinfo')
Ejemplo n.º 4
0
def reimport_rolemap(context):
    """Update rolemap"""
    reimport_profile(context, PROFILE_ID, 'rolemap')
Ejemplo n.º 5
0
def reimport_registry(context):
    """Update registry"""
    reimport_profile(context, PROFILE_ID, 'plone.app.registry')
Ejemplo n.º 6
0
def reimport_propertiestool(context):
    """Update propertiestool"""
    reimport_profile(context, PROFILE_ID, 'propertiestool')
Ejemplo n.º 7
0
def reimport_properties(context):
    """Update properties"""
    reimport_profile(context, PROFILE_ID, 'properties')
Ejemplo n.º 8
0
def reimport_properties(context):
    """Update properties"""
    reimport_profile(context, PROFILE_ID, 'properties')
Ejemplo n.º 9
0
def reimport_actions(context):
    """Update actions"""
    reimport_profile(context, PROFILE_ID, 'actions')
Ejemplo n.º 10
0
def reimport_typeinfo(context):
    """Update typeinfo"""
    reimport_profile(context, PROFILE_ID, 'typeinfo')
Ejemplo n.º 11
0
def reimport_workflow(context):
    """Update workflow"""
    reimport_profile(context, PROFILE_ID, 'workflow')
Ejemplo n.º 12
0
def reimport_rolemap(context):
    """Update rolemap"""
    reimport_profile(context, PROFILE_ID, 'rolemap')
Ejemplo n.º 13
0
def reimport_registry(context):
    """Update registry"""
    reimport_profile(context, PROFILE_ID, 'plone.app.registry')
Ejemplo n.º 14
0
def reimport_propertiestool(context):
    """Update propertiestool"""
    reimport_profile(context, PROFILE_ID, 'propertiestool')
Ejemplo n.º 15
0
def reimport_actions(context):
    """Update actions"""
    reimport_profile(context, PROFILE_ID, 'actions')
Ejemplo n.º 16
0
def reimport_memberdata_properties(context):
    """Update memberdata properties"""
    reimport_profile(context, PROFILE_ID, 'memberdata-properties')
Ejemplo n.º 17
0
 def test_reimport_profile(self, getToolByName):
     from abita.utils.utils import reimport_profile
     reimport_profile(self.portal, 'PROFILE', 'NAME')
     getToolByName().runImportStepFromProfile.assert_called_with(
         'PROFILE', 'NAME', run_dependencies=False, purge_old=False)
Ejemplo n.º 18
0
def reimport_memberdata_properties(context):
    """Update memberdata properties"""
    reimport_profile(context, PROFILE_ID, 'memberdata-properties')