예제 #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
        )
예제 #2
0
def reimport_workflow(context):
    """Update workflow"""
    reimport_profile(context, PROFILE_ID, 'workflow')
예제 #3
0
def reimport_typeinfo(context):
    """Update typeinfo"""
    reimport_profile(context, PROFILE_ID, 'typeinfo')
예제 #4
0
def reimport_rolemap(context):
    """Update rolemap"""
    reimport_profile(context, PROFILE_ID, 'rolemap')
예제 #5
0
def reimport_registry(context):
    """Update registry"""
    reimport_profile(context, PROFILE_ID, 'plone.app.registry')
예제 #6
0
def reimport_propertiestool(context):
    """Update propertiestool"""
    reimport_profile(context, PROFILE_ID, 'propertiestool')
예제 #7
0
def reimport_properties(context):
    """Update properties"""
    reimport_profile(context, PROFILE_ID, 'properties')
예제 #8
0
def reimport_properties(context):
    """Update properties"""
    reimport_profile(context, PROFILE_ID, 'properties')
예제 #9
0
def reimport_actions(context):
    """Update actions"""
    reimport_profile(context, PROFILE_ID, 'actions')
예제 #10
0
def reimport_typeinfo(context):
    """Update typeinfo"""
    reimport_profile(context, PROFILE_ID, 'typeinfo')
예제 #11
0
def reimport_workflow(context):
    """Update workflow"""
    reimport_profile(context, PROFILE_ID, 'workflow')
예제 #12
0
def reimport_rolemap(context):
    """Update rolemap"""
    reimport_profile(context, PROFILE_ID, 'rolemap')
예제 #13
0
def reimport_registry(context):
    """Update registry"""
    reimport_profile(context, PROFILE_ID, 'plone.app.registry')
예제 #14
0
def reimport_propertiestool(context):
    """Update propertiestool"""
    reimport_profile(context, PROFILE_ID, 'propertiestool')
예제 #15
0
def reimport_actions(context):
    """Update actions"""
    reimport_profile(context, PROFILE_ID, 'actions')
예제 #16
0
def reimport_memberdata_properties(context):
    """Update memberdata properties"""
    reimport_profile(context, PROFILE_ID, 'memberdata-properties')
예제 #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)
예제 #18
0
def reimport_memberdata_properties(context):
    """Update memberdata properties"""
    reimport_profile(context, PROFILE_ID, 'memberdata-properties')