Esempio n. 1
0
def final_two51(portal):
    """2.5-final -> 2.5.1
    """
    out = []

    # Make the portal a Zope3 site
    enableZope3Site(portal, out)

    # register some tools as utilities
    registerToolsAsUtilities(portal, out)

    removePloneCssFromRR(portal, out)

    # add event_registration.js
    addEventRegistrationJS(portal, out)

    # Repair plone_lexicon pipeline
    fixupPloneLexicon(portal, out)

    # We need to migrate all existing actions to new-style actions first
    migrateOldActions(portal, out)
    # Make object delete action use confirmation form
    fixObjDeleteAction(portal, out)

    # Required for #5569 (is_folderish needs reindexing) and #5231 (all text
    # indices need to be reindexed so they are split properly)
    migtool = getToolByName(portal, 'portal_migration')
    migtool._needRecatalog = True

    return out
Esempio n. 2
0
File: betas.py Progetto: dtgit/dtedu
def alpha2_beta1(portal):
    """2.5-alpha2 -> 2.5-beta1
    """
    out = []

    # Make the portal a Zope3 site
    enableZope3Site(portal, out)

    # register some tools as utilities
    registerToolsAsUtilities(portal, out)

    # Add dragdropreorder.js to ResourceRegistries.
    addDragDropReorderJS(portal, out)

    # Add getEventTypes KeywordIndex to portal_catalog
    addGetEventTypeIndex(portal, out)

    # We need to migrate all existing actions to new-style actions first
    migrateOldActions(portal, out)
    # Fix 'home' portal action
    fixHomeAction(portal, out)

    # Fixup the navtree properties (this was already done in 2.1.3, but may
    # need to be done again for those migrating from alphas)
    normalizeNavtreeProperties(portal, out)

    return out
Esempio n. 3
0
def two11_two12rc1(portal):
    """2.1.1 -> 2.1.2-rc1
    """
    out = []

    # Make the portal a Zope3 site
    enableZope3Site(portal, out)

    # register some tools as utilities
    registerToolsAsUtilities(portal, out)

    # Remove plone_3rdParty\CMFTopic from skin layers
    removeCMFTopicSkinLayer(portal, out)


    # We need to migrate all existing actions to new-style actions first
    migrateOldActions(portal, out)
    # Add rename object action
    addRenameObjectButton(portal, out)

    # add se-highlight.js (plone_3rdParty) to ResourceRegistries
    addSEHighLightJS(portal, out)
    
    # Don't let Discussion item have a workflow
    removeDiscussionItemWorkflow(portal, out)

    # Add new member data item
    addMemberData(portal, out)

    return out
Esempio n. 4
0
File: betas.py Progetto: dtgit/dtedu
def beta1_beta2(portal):
    """2.5-beta1 - > 2.5-beta2
    """
    out = []

    # Make the portal a Zope3 site
    enableZope3Site(portal, out)

    # register some tools as utilities
    registerToolsAsUtilities(portal, out)

    # The migration done during the alpha screwed things up, so we do it again
    # and fix the mistake while we're at it
    installDeprecated(portal, out)
    removeBogusSkin(portal, out)

    # add a property indicating if this is a big or small site, so the UI can
    # change depending on it
    propTool = getToolByName(portal, 'portal_properties', None)
    propSheet = getattr(propTool, 'site_properties', None)
    if not propSheet.hasProperty('large_site'):
        propSheet.manage_addProperty('large_site', 0, 'boolean')
        out.append("Added 'large_site' property to site_properties.")

    # Remove vcXMLRPC.js from ResourceRegistries (this was already done in
    # 2.1.3, but may need to be done again for those migrating from alphas)
    removeVcXMLRPC(portal, out)

    # add icons for copy, cut, paste and delete
    addActionDropDownMenuIcons(portal, out)

    # add any appropriate plone skin layers to custom skins
    addPloneSkinLayers(portal, out)

    # Install portal_setup
    installPortalSetup(portal, out)

    # We need to migrate all existing actions to new-style actions first
    migrateOldActions(portal, out)
    # Simplify actions using the @@plone view
    simplifyActions(portal, out)

    # Use the @@plone view for the RTL.css expression entry
    migrateCSSRegExpression(portal, out)

    return out