def getMemberTypesVocab(self):
     """ Get a displaylist of remember-based member types.
     """
     remtypes = getRememberTypes(self)
     remtypes.sort()
     remtypes = [(i, i) for i in remtypes]
     return DisplayList(remtypes)
 def getMemberTypesVocab(self):
     """ Get a displaylist of remember-based member types.
     """
     remtypes = getRememberTypes(self)
     remtypes.sort()
     remtypes = [(i, i) for i in remtypes]
     return DisplayList(remtypes)
Exemple #3
0
def rememberTypes(context):
    """
    Returns a vocabulary of the remember member types.
    """
    remtypes = getRememberTypes(context)
    remtypes.sort()
    remtypes = [(i, i) for i in remtypes]
    return SimpleVocabulary.fromItems(remtypes)
Exemple #4
0
def rememberTypes(context):
    """
    Returns a vocabulary of the remember member types.
    """
    remtypes = getRememberTypes(context)
    remtypes.sort()
    remtypes = [(i, i) for i in remtypes]
    return SimpleVocabulary.fromItems(remtypes)
def uninstallWorkflows(self, package, out):
    """Deinstall the workflows.

    This code doesn't really do anything, but you can place custom
    code here in the protected section.
    """

    ##code-section workflow-uninstall #fill in your manual code here
    # Change back the default workflow
    wft = getToolByName(self, "portal_workflow")
    wft.setDefaultChain("plone_workflow")
    wft.setChainForPortalTypes(["Folder", "Large Plone Folder"], "folder_workflow")
    wft.setChainForPortalTypes(
        getRememberTypes(self) + ["MemberOfParliament", "Clerk", "MemberOfPublic"], "member_auto_workflow"
    )
    wft.updateRoleMappings()
    ##/code-section workflow-uninstall

    pass
Exemple #6
0
def uninstallWorkflows(self, package, out):
    """Deinstall the workflows.

    This code doesn't really do anything, but you can place custom
    code here in the protected section.
    """

    ##code-section workflow-uninstall #fill in your manual code here
    # Change back the default workflow
    wft = getToolByName(self, 'portal_workflow')
    wft.setDefaultChain('plone_workflow')
    wft.setChainForPortalTypes(['Folder', 'Large Plone Folder'],
                               "folder_workflow")
    wft.setChainForPortalTypes(
        getRememberTypes(self) + [
            'MemberOfParliament',
            'Clerk',
            'MemberOfPublic',
        ], 'member_auto_workflow')
    wft.updateRoleMappings()
    ##/code-section workflow-uninstall

    pass