Calvin Hendryx Parker Tips For Migrating Apps To Plone 3

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    1 Group

    Calvin Hendryx Parker Tips For Migrating Apps To Plone 3 - Presentation Transcript

    1. Tips for Migrating Apps to Plone 3 - Calvin Hendryx-Parker 10.11.2007 Tips for Migrating Apps to Plone 3 Silicon Valley • Midwest Six Feet Up, Inc. • http://www.sixfeetup.com
    2. Tips for Migrating Apps to Plone 3 - Calvin Hendryx-Parker 10.11.2007 Questions? Silicon Valley • Midwest Six Feet Up, Inc. • http://www.sixfeetup.com
    3. Tips for Migrating Apps to Plone 3 - Calvin Hendryx-Parker 10.11.2007 How Do We Get There? Silicon Valley • Midwest Six Feet Up, Inc. • http://www.sixfeetup.com
    4. Tips for Migrating Apps to Plone 3 - Calvin Hendryx-Parker 10.11.2007 Zope Won’t Start Silicon Valley • Midwest Six Feet Up, Inc. • http://www.sixfeetup.com
    5. Tips for Migrating Apps to Plone 3 - Calvin Hendryx-Parker 10.11.2007 Deprecated Methods and Imports • Products.CMFCore.CMFPermissions Products.CMFCore.permissions • Products.CMFPlone.utils.BrowserView Products.Five.BrowserView • toPortalTime finally gone • toLocalizedTime now in the @@plone view Silicon Valley • Midwest Six Feet Up, Inc. • http://www.sixfeetup.com
    6. Tips for Migrating Apps to Plone 3 - Calvin Hendryx-Parker 10.11.2007 Getting Current Silicon Valley • Midwest Six Feet Up, Inc. • http://www.sixfeetup.com
    7. Tips for Migrating Apps to Plone 3 - Calvin Hendryx-Parker 10.11.2007 Update your type info • Remove Sharing Tab • Remove Properties Tab • Add Lock Awareness to the Edit Tab condition_expr=\"not:object/ @@plone_lock_info/ is_locked_for_current_user|python:True\" Silicon Valley • Midwest Six Feet Up, Inc. • http://www.sixfeetup.com
    8. Tips for Migrating Apps to Plone 3 - Calvin Hendryx-Parker 10.11.2007 Life Changing Decisions Silicon Valley • Midwest Six Feet Up, Inc. • http://www.sixfeetup.com
    9. Tips for Migrating Apps to Plone 3 - Calvin Hendryx-Parker 10.11.2007 Taking Advantage of Zope 3 • View Classes • Create Utilities instead of Portal Tools • Use MenuItems to add custom Actions • Zope 3 Events manage_afterAdd manage_beforeDelete Silicon Valley • Midwest Six Feet Up, Inc. • http://www.sixfeetup.com
    10. Tips for Migrating Apps to Plone 3 - Calvin Hendryx-Parker 10.11.2007 ZCML Silicon Valley • Midwest Six Feet Up, Inc. • http://www.sixfeetup.com
    11. Tips for Migrating Apps to Plone 3 - Calvin Hendryx-Parker 10.11.2007 <configure xmlns=\"http://namespaces.zope.org/zope\"> <subscriber for=\"Products.OER.interfaces.IOERItem OFS.interfaces.IObjectWillBeRemovedEvent\" handler=\".subscribers.deleteSubmissions\"/> <subscriber for=\"Products.OER.interfaces.IOERTag zope.app.event.interfaces.IObjectModifiedEvent\" handler=\".subscribers.checkTags\"/> <subscriber for=\"Products.OER.interfaces.IOERSubmission OFS.interfaces.IObjectWillBeAddedEvent\" handler=\".subscribers.changeStateHomeFolder\"/> </configure> Silicon Valley • Midwest Six Feet Up, Inc. • http://www.sixfeetup.com
    12. Tips for Migrating Apps to Plone 3 - Calvin Hendryx-Parker 10.11.2007 def deleteSubmissions(self, event): \"\"\" Delete the submissions attached to the object we just come from deleting \"\"\" item = event.object # we delete the tags/ratings/reviews/notes associated with this item ps = getToolByName(self, 'portal_submissions') pc = getToolByName(self, 'portal_catalog') targets = ps.getTargets(item) ... Silicon Valley • Midwest Six Feet Up, Inc. • http://www.sixfeetup.com
    13. Tips for Migrating Apps to Plone 3 - Calvin Hendryx-Parker 10.11.2007 GenericSetup • Replaces Customization Policies • Replaces the old Install.py for QuickInstaller • Upgrade Steps Versatile One Time Steps Silicon Valley • Midwest Six Feet Up, Inc. • http://www.sixfeetup.com
    14. Tips for Migrating Apps to Plone 3 - Calvin Hendryx-Parker 10.11.2007 <configure xmlns=\"http://namespaces.zope.org/zope\" xmlns:genericsetup=\"http://namespaces.zope.org/genericsetup\" i18n_domain=\"plone\"> <genericsetup:registerProfile name=\"default\" title=\"AdvancedDocument Profile\" directory=\"profiles/default\" description=\"Extension profile for the AdvancedDocument Product\" provides=\"Products.GenericSetup.interfaces.EXTENSION\" /> <genericsetup:upgradeStep title=\"Update Catalog\" description=\"Update the Catalog\" source=\"0.4\" destination=\"0.5\" handler=\"Products.AdvancedDocument.upgrades.updatecatalog.updateCatalog\" sortkey=\"1\" profile=\"Products.AdvancedDocument:default\" /> </configure> Silicon Valley • Midwest Six Feet Up, Inc. • http://www.sixfeetup.com
    15. Tips for Migrating Apps to Plone 3 - Calvin Hendryx-Parker 10.11.2007 Silicon Valley • Midwest Six Feet Up, Inc. • http://www.sixfeetup.com
    16. Tips for Migrating Apps to Plone 3 - Calvin Hendryx-Parker 10.11.2007 Setting up Versioning • GenericSetup export/import broken • Setup via a setup handler • Register via your product Silicon Valley • Midwest Six Feet Up, Inc. • http://www.sixfeetup.com
    17. Tips for Migrating Apps to Plone 3 - Calvin Hendryx-Parker 10.11.2007 <?xml version=\"1.0\"?> <import-steps> <import-step id=\"versioningsetup\" version=\"20070828-01\" handler=\"Products.AdvancedDocument.exportimport.versioningsetup.versioningSetup\" title=\"Versioning Setup\"> <dependency step=\"content\"/> Add versioning on our selected content types </import-step> </import-steps> Silicon Valley • Midwest Six Feet Up, Inc. • http://www.sixfeetup.com
    18. Tips for Migrating Apps to Plone 3 - Calvin Hendryx-Parker 10.11.2007 def versioningSetup(context): \"\"\"Setup portal_factory \"\"\" site = context.getSite() portal_repository = getToolByName(site, 'portal_repository') portal_diff = getToolByName(site, 'portal_diff') versionable_types = list(portal_repository.getVersionableContentTypes()) type_ids = ['AdvancedDocument', ] for type_id in type_ids: if type_id not in versionable_types: versionable_types.append(type_id) for policy_id in DEFAULT_POLICIES: portal_repository.addPolicyForContentType(type_id, policy_id) diff_res = portal_diff.getDiffForPortalType(type_id) if not diff_res: portal_diff.manage_addDiffField(type_id, 'any', 'Compound Diff for AT types') portal_repository.setVersionableContentTypes(versionable_types) Silicon Valley • Midwest Six Feet Up, Inc. • http://www.sixfeetup.com
    19. Tips for Migrating Apps to Plone 3 - Calvin Hendryx-Parker 10.11.2007 People Skills Silicon Valley • Midwest Six Feet Up, Inc. • http://www.sixfeetup.com
    20. Tips for Migrating Apps to Plone 3 - Calvin Hendryx-Parker 10.11.2007 GRUF and PAS • PAS added as default in 2.5 • GRUF completely removed in 3.0 • User and Group Searching Done via PAS directly Silicon Valley • Midwest Six Feet Up, Inc. • http://www.sixfeetup.com
    21. Tips for Migrating Apps to Plone 3 - Calvin Hendryx-Parker 10.11.2007 New Roles • Reader • Editor • Contributor Add your custom add permissions to this role Silicon Valley • Midwest Six Feet Up, Inc. • http://www.sixfeetup.com
    22. Tips for Migrating Apps to Plone 3 - Calvin Hendryx-Parker 10.11.2007 Portlets • Viewlets • Viewlet Manager • Classic Portlet Performance Issues left and right slots properties gone Silicon Valley • Midwest Six Feet Up, Inc. • http://www.sixfeetup.com
    23. Tips for Migrating Apps to Plone 3 - Calvin Hendryx-Parker 10.11.2007 <configure xmlns=\"http://namespaces.zope.org/zope\" xmlns:plone=\"http://namespaces.plone.org/plone\"> <plone:portlet name=\"portlets.Ads\" interface=\".portlets.ads.IAdPortlet\" assignment=\".portlets.ads.Assignment\" renderer=\".portlets.ads.Renderer\" addview=\".portlets.ads.AddForm\" editview=\".portlets.ads.EditForm\" /> </configure> Silicon Valley • Midwest Six Feet Up, Inc. • http://www.sixfeetup.com
    24. Tips for Migrating Apps to Plone 3 - Calvin Hendryx-Parker 10.11.2007 Leverage Other New Features Silicon Valley • Midwest Six Feet Up, Inc. • http://www.sixfeetup.com
    25. Tips for Migrating Apps to Plone 3 - Calvin Hendryx-Parker 10.11.2007 Additional Markup and Field Support • textile • markdown • wiki style linking Silicon Valley • Midwest Six Feet Up, Inc. • http://www.sixfeetup.com
    26. Tips for Migrating Apps to Plone 3 - Calvin Hendryx-Parker 10.11.2007 Don’t Forget the Basics Silicon Valley • Midwest Six Feet Up, Inc. • http://www.sixfeetup.com
    27. Tips for Migrating Apps to Plone 3 - Calvin Hendryx-Parker 10.11.2007 Catalog Enhancements • ExtendedPathIndex • New Date Indexes Silicon Valley • Midwest Six Feet Up, Inc. • http://www.sixfeetup.com
    28. Tips for Migrating Apps to Plone 3 - Calvin Hendryx-Parker 10.11.2007 Leverage the Registries • CSS • Javascript Silicon Valley • Midwest Six Feet Up, Inc. • http://www.sixfeetup.com
    29. Tips for Migrating Apps to Plone 3 - Calvin Hendryx-Parker 10.11.2007 Questions? Silicon Valley • Midwest Six Feet Up, Inc. • http://www.sixfeetup.com

    + woodawooda, 3 years ago

    custom

    973 views, 0 favs, 1 embeds more stats

    Plone has undergone several rounds of changes and d more

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 973
      • 971 on SlideShare
      • 2 from embeds
    • Comments 0
    • Favorites 0
    • Downloads 39
    Most viewed embeds
    • 2 views on http://caffeinesystem.blogspot.com

    more

    All embeds
    • 2 views on http://caffeinesystem.blogspot.com

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories

    Groups / Events