SlideShare una empresa de Scribd logo
1 de 29
Descargar para leer sin conexión
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
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
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
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
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
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
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=quot;not:object/
                           @@plone_lock_info/
                           is_locked_for_current_user|python:Truequot;




                                                                     Silicon Valley • Midwest
Six Feet Up, Inc. • http://www.sixfeetup.com
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
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
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
Tips for Migrating Apps to Plone 3 - Calvin Hendryx-Parker                                   10.11.2007




                     <configure
                       xmlns=quot;http://namespaces.zope.org/zopequot;>

                         <subscriber
                           for=quot;Products.OER.interfaces.IOERItem
                                OFS.interfaces.IObjectWillBeRemovedEventquot;
                           handler=quot;.subscribers.deleteSubmissionsquot;/>

                         <subscriber
                           for=quot;Products.OER.interfaces.IOERTag
                                zope.app.event.interfaces.IObjectModifiedEventquot;
                           handler=quot;.subscribers.checkTagsquot;/>

                       <subscriber
                          for=quot;Products.OER.interfaces.IOERSubmission
                               OFS.interfaces.IObjectWillBeAddedEventquot;
                          handler=quot;.subscribers.changeStateHomeFolderquot;/>

                     </configure>



                                                                                  Silicon Valley • Midwest
Six Feet Up, Inc. • http://www.sixfeetup.com
Tips for Migrating Apps to Plone 3 - Calvin Hendryx-Parker                                      10.11.2007




            def deleteSubmissions(self, event):
                quot;quot;quot;
                Delete the submissions attached to the object we just come from deleting
                quot;quot;quot;
                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
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
Tips for Migrating Apps to Plone 3 - Calvin Hendryx-Parker                                     10.11.2007




          <configure
              xmlns=quot;http://namespaces.zope.org/zopequot;
              xmlns:genericsetup=quot;http://namespaces.zope.org/genericsetupquot;
              i18n_domain=quot;plonequot;>

             <genericsetup:registerProfile
                 name=quot;defaultquot;
                 title=quot;AdvancedDocument Profilequot;
                 directory=quot;profiles/defaultquot;
                 description=quot;Extension profile for the AdvancedDocument Productquot;
                 provides=quot;Products.GenericSetup.interfaces.EXTENSIONquot;
                 />

            <genericsetup:upgradeStep
                title=quot;Update Catalogquot;
                description=quot;Update the Catalogquot;
                source=quot;0.4quot;
                destination=quot;0.5quot;
                handler=quot;Products.AdvancedDocument.upgrades.updatecatalog.updateCatalogquot;
                sortkey=quot;1quot;
                profile=quot;Products.AdvancedDocument:defaultquot;
                />
          </configure>

                                                                                    Silicon Valley • Midwest
Six Feet Up, Inc. • http://www.sixfeetup.com
Tips for Migrating Apps to Plone 3 - Calvin Hendryx-Parker              10.11.2007




                                                             Silicon Valley • Midwest
Six Feet Up, Inc. • http://www.sixfeetup.com
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
Tips for Migrating Apps to Plone 3 - Calvin Hendryx-Parker                                  10.11.2007




     <?xml version=quot;1.0quot;?>
     <import-steps>

      <import-step id=quot;versioningsetupquot; version=quot;20070828-01quot;
           handler=quot;Products.AdvancedDocument.exportimport.versioningsetup.versioningSetupquot;
           title=quot;Versioning Setupquot;>
           <dependency step=quot;contentquot;/>
           Add versioning on our selected content types
      </import-step>

     </import-steps>




                                                                                 Silicon Valley • Midwest
Six Feet Up, Inc. • http://www.sixfeetup.com
Tips for Migrating Apps to Plone 3 - Calvin Hendryx-Parker                                  10.11.2007




  def versioningSetup(context):
      quot;quot;quot;Setup portal_factory
      quot;quot;quot;
      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
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
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
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
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
Tips for Migrating Apps to Plone 3 - Calvin Hendryx-Parker                                      10.11.2007




                       <configure xmlns=quot;http://namespaces.zope.org/zopequot;
                                  xmlns:plone=quot;http://namespaces.plone.org/plonequot;>

                          <plone:portlet
                            name=quot;portlets.Adsquot;
                            interface=quot;.portlets.ads.IAdPortletquot;
                            assignment=quot;.portlets.ads.Assignmentquot;
                            renderer=quot;.portlets.ads.Rendererquot;
                            addview=quot;.portlets.ads.AddFormquot;
                            editview=quot;.portlets.ads.EditFormquot;
                            />

                       </configure>




                                                                                     Silicon Valley • Midwest
Six Feet Up, Inc. • http://www.sixfeetup.com
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
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
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
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
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
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

Más contenido relacionado

Más de Vincenzo Barone

Sally Kleinfeldt - Plone Application Development Patterns
Sally Kleinfeldt - Plone Application Development PatternsSally Kleinfeldt - Plone Application Development Patterns
Sally Kleinfeldt - Plone Application Development PatternsVincenzo Barone
 
Where's the source, Luke? : How to find and debug the code behind Plone
Where's the source, Luke? : How to find and debug the code behind PloneWhere's the source, Luke? : How to find and debug the code behind Plone
Where's the source, Luke? : How to find and debug the code behind PloneVincenzo Barone
 
ItalianSkin: an improvement in the accessibility of the Plone interface in or...
ItalianSkin: an improvement in the accessibility of the Plone interface in or...ItalianSkin: an improvement in the accessibility of the Plone interface in or...
ItalianSkin: an improvement in the accessibility of the Plone interface in or...Vincenzo Barone
 
How to market Plone the Web2.0 way
How to market Plone the Web2.0 wayHow to market Plone the Web2.0 way
How to market Plone the Web2.0 wayVincenzo Barone
 
Lennart Regebro What Zope Did Wrong (And What To Do Instead)
Lennart Regebro   What Zope Did Wrong (And What To Do Instead)Lennart Regebro   What Zope Did Wrong (And What To Do Instead)
Lennart Regebro What Zope Did Wrong (And What To Do Instead)Vincenzo Barone
 
Wichert Akkerman Plone Deployment Practices The Plone.Org Setup
Wichert Akkerman   Plone Deployment Practices   The Plone.Org SetupWichert Akkerman   Plone Deployment Practices   The Plone.Org Setup
Wichert Akkerman Plone Deployment Practices The Plone.Org SetupVincenzo Barone
 
Duco Dokter - Plone for the enterprise market: technical musing on caching, C...
Duco Dokter - Plone for the enterprise market: technical musing on caching, C...Duco Dokter - Plone for the enterprise market: technical musing on caching, C...
Duco Dokter - Plone for the enterprise market: technical musing on caching, C...Vincenzo Barone
 
Rocky Burt Subtyping Unleashed
Rocky Burt   Subtyping UnleashedRocky Burt   Subtyping Unleashed
Rocky Burt Subtyping UnleashedVincenzo Barone
 
Alec Mitchell Relationship Building Defining And Querying Complex Relatio...
Alec Mitchell   Relationship Building   Defining And Querying Complex Relatio...Alec Mitchell   Relationship Building   Defining And Querying Complex Relatio...
Alec Mitchell Relationship Building Defining And Querying Complex Relatio...Vincenzo Barone
 
Wageindicator Foundation: a Case Study
Wageindicator Foundation: a Case StudyWageindicator Foundation: a Case Study
Wageindicator Foundation: a Case StudyVincenzo Barone
 
Tom Lazar Using Zope3 Views And Viewlets For Plone 3.0 Product Development
Tom Lazar   Using Zope3 Views And Viewlets For Plone 3.0 Product DevelopmentTom Lazar   Using Zope3 Views And Viewlets For Plone 3.0 Product Development
Tom Lazar Using Zope3 Views And Viewlets For Plone 3.0 Product DevelopmentVincenzo Barone
 
Xavier Heymans Plone Gov Plone In The Public Sector. Panel Presenting The...
Xavier Heymans   Plone Gov   Plone In The Public Sector. Panel Presenting The...Xavier Heymans   Plone Gov   Plone In The Public Sector. Panel Presenting The...
Xavier Heymans Plone Gov Plone In The Public Sector. Panel Presenting The...Vincenzo Barone
 
Brent Lambert Plone In Education A Case Study Of The Use Of Plone And Educa...
Brent Lambert   Plone In Education A Case Study Of The Use Of Plone And Educa...Brent Lambert   Plone In Education A Case Study Of The Use Of Plone And Educa...
Brent Lambert Plone In Education A Case Study Of The Use Of Plone And Educa...Vincenzo Barone
 
Philipp Von Weitershausen Plone Age Mammoths, Sabers And Caveen Cant The...
Philipp Von Weitershausen   Plone Age  Mammoths, Sabers And Caveen   Cant The...Philipp Von Weitershausen   Plone Age  Mammoths, Sabers And Caveen   Cant The...
Philipp Von Weitershausen Plone Age Mammoths, Sabers And Caveen Cant The...Vincenzo Barone
 
Denis Mishunov Making Plone Theme 10 Most Wanted Tips
Denis Mishunov   Making Plone Theme   10 Most Wanted Tips Denis Mishunov   Making Plone Theme   10 Most Wanted Tips
Denis Mishunov Making Plone Theme 10 Most Wanted Tips Vincenzo Barone
 
Duncan Booth Kupu, Past Present And Future
Duncan Booth   Kupu, Past Present And FutureDuncan Booth   Kupu, Past Present And Future
Duncan Booth Kupu, Past Present And FutureVincenzo Barone
 
Jeroen Vloothuis Bend Kss To Your Will
Jeroen Vloothuis   Bend Kss To Your WillJeroen Vloothuis   Bend Kss To Your Will
Jeroen Vloothuis Bend Kss To Your WillVincenzo Barone
 
Jared Whitlock Open Source In The Enterprise Plone @ Novell
Jared Whitlock   Open Source In The Enterprise    Plone @ NovellJared Whitlock   Open Source In The Enterprise    Plone @ Novell
Jared Whitlock Open Source In The Enterprise Plone @ NovellVincenzo Barone
 
Paul Everitt Community And Foundation Plones Past, Present, Future
Paul Everitt   Community And Foundation   Plones Past, Present, Future Paul Everitt   Community And Foundation   Plones Past, Present, Future
Paul Everitt Community And Foundation Plones Past, Present, Future Vincenzo Barone
 
Thomas Moroz Open Source And The Open Society Using Plone To Build Commun...
Thomas Moroz   Open Source And The Open Society   Using Plone To Build Commun...Thomas Moroz   Open Source And The Open Society   Using Plone To Build Commun...
Thomas Moroz Open Source And The Open Society Using Plone To Build Commun...Vincenzo Barone
 

Más de Vincenzo Barone (20)

Sally Kleinfeldt - Plone Application Development Patterns
Sally Kleinfeldt - Plone Application Development PatternsSally Kleinfeldt - Plone Application Development Patterns
Sally Kleinfeldt - Plone Application Development Patterns
 
Where's the source, Luke? : How to find and debug the code behind Plone
Where's the source, Luke? : How to find and debug the code behind PloneWhere's the source, Luke? : How to find and debug the code behind Plone
Where's the source, Luke? : How to find and debug the code behind Plone
 
ItalianSkin: an improvement in the accessibility of the Plone interface in or...
ItalianSkin: an improvement in the accessibility of the Plone interface in or...ItalianSkin: an improvement in the accessibility of the Plone interface in or...
ItalianSkin: an improvement in the accessibility of the Plone interface in or...
 
How to market Plone the Web2.0 way
How to market Plone the Web2.0 wayHow to market Plone the Web2.0 way
How to market Plone the Web2.0 way
 
Lennart Regebro What Zope Did Wrong (And What To Do Instead)
Lennart Regebro   What Zope Did Wrong (And What To Do Instead)Lennart Regebro   What Zope Did Wrong (And What To Do Instead)
Lennart Regebro What Zope Did Wrong (And What To Do Instead)
 
Wichert Akkerman Plone Deployment Practices The Plone.Org Setup
Wichert Akkerman   Plone Deployment Practices   The Plone.Org SetupWichert Akkerman   Plone Deployment Practices   The Plone.Org Setup
Wichert Akkerman Plone Deployment Practices The Plone.Org Setup
 
Duco Dokter - Plone for the enterprise market: technical musing on caching, C...
Duco Dokter - Plone for the enterprise market: technical musing on caching, C...Duco Dokter - Plone for the enterprise market: technical musing on caching, C...
Duco Dokter - Plone for the enterprise market: technical musing on caching, C...
 
Rocky Burt Subtyping Unleashed
Rocky Burt   Subtyping UnleashedRocky Burt   Subtyping Unleashed
Rocky Burt Subtyping Unleashed
 
Alec Mitchell Relationship Building Defining And Querying Complex Relatio...
Alec Mitchell   Relationship Building   Defining And Querying Complex Relatio...Alec Mitchell   Relationship Building   Defining And Querying Complex Relatio...
Alec Mitchell Relationship Building Defining And Querying Complex Relatio...
 
Wageindicator Foundation: a Case Study
Wageindicator Foundation: a Case StudyWageindicator Foundation: a Case Study
Wageindicator Foundation: a Case Study
 
Tom Lazar Using Zope3 Views And Viewlets For Plone 3.0 Product Development
Tom Lazar   Using Zope3 Views And Viewlets For Plone 3.0 Product DevelopmentTom Lazar   Using Zope3 Views And Viewlets For Plone 3.0 Product Development
Tom Lazar Using Zope3 Views And Viewlets For Plone 3.0 Product Development
 
Xavier Heymans Plone Gov Plone In The Public Sector. Panel Presenting The...
Xavier Heymans   Plone Gov   Plone In The Public Sector. Panel Presenting The...Xavier Heymans   Plone Gov   Plone In The Public Sector. Panel Presenting The...
Xavier Heymans Plone Gov Plone In The Public Sector. Panel Presenting The...
 
Brent Lambert Plone In Education A Case Study Of The Use Of Plone And Educa...
Brent Lambert   Plone In Education A Case Study Of The Use Of Plone And Educa...Brent Lambert   Plone In Education A Case Study Of The Use Of Plone And Educa...
Brent Lambert Plone In Education A Case Study Of The Use Of Plone And Educa...
 
Philipp Von Weitershausen Plone Age Mammoths, Sabers And Caveen Cant The...
Philipp Von Weitershausen   Plone Age  Mammoths, Sabers And Caveen   Cant The...Philipp Von Weitershausen   Plone Age  Mammoths, Sabers And Caveen   Cant The...
Philipp Von Weitershausen Plone Age Mammoths, Sabers And Caveen Cant The...
 
Denis Mishunov Making Plone Theme 10 Most Wanted Tips
Denis Mishunov   Making Plone Theme   10 Most Wanted Tips Denis Mishunov   Making Plone Theme   10 Most Wanted Tips
Denis Mishunov Making Plone Theme 10 Most Wanted Tips
 
Duncan Booth Kupu, Past Present And Future
Duncan Booth   Kupu, Past Present And FutureDuncan Booth   Kupu, Past Present And Future
Duncan Booth Kupu, Past Present And Future
 
Jeroen Vloothuis Bend Kss To Your Will
Jeroen Vloothuis   Bend Kss To Your WillJeroen Vloothuis   Bend Kss To Your Will
Jeroen Vloothuis Bend Kss To Your Will
 
Jared Whitlock Open Source In The Enterprise Plone @ Novell
Jared Whitlock   Open Source In The Enterprise    Plone @ NovellJared Whitlock   Open Source In The Enterprise    Plone @ Novell
Jared Whitlock Open Source In The Enterprise Plone @ Novell
 
Paul Everitt Community And Foundation Plones Past, Present, Future
Paul Everitt   Community And Foundation   Plones Past, Present, Future Paul Everitt   Community And Foundation   Plones Past, Present, Future
Paul Everitt Community And Foundation Plones Past, Present, Future
 
Thomas Moroz Open Source And The Open Society Using Plone To Build Commun...
Thomas Moroz   Open Source And The Open Society   Using Plone To Build Commun...Thomas Moroz   Open Source And The Open Society   Using Plone To Build Commun...
Thomas Moroz Open Source And The Open Society Using Plone To Build Commun...
 

Último

Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Angeliki Cooney
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...apidays
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Orbitshub
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfOrbitshub
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWERMadyBayot
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...Zilliz
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...apidays
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityWSO2
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Victor Rentea
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelDeepika Singh
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxRustici Software
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdfSandro Moreira
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Bhuvaneswari Subramani
 

Último (20)

Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 

Calvin Hendryx Parker Tips For Migrating Apps To Plone 3

  • 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=quot;not:object/ @@plone_lock_info/ is_locked_for_current_user|python:Truequot; 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=quot;http://namespaces.zope.org/zopequot;> <subscriber for=quot;Products.OER.interfaces.IOERItem OFS.interfaces.IObjectWillBeRemovedEventquot; handler=quot;.subscribers.deleteSubmissionsquot;/> <subscriber for=quot;Products.OER.interfaces.IOERTag zope.app.event.interfaces.IObjectModifiedEventquot; handler=quot;.subscribers.checkTagsquot;/> <subscriber for=quot;Products.OER.interfaces.IOERSubmission OFS.interfaces.IObjectWillBeAddedEventquot; handler=quot;.subscribers.changeStateHomeFolderquot;/> </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): quot;quot;quot; Delete the submissions attached to the object we just come from deleting quot;quot;quot; 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=quot;http://namespaces.zope.org/zopequot; xmlns:genericsetup=quot;http://namespaces.zope.org/genericsetupquot; i18n_domain=quot;plonequot;> <genericsetup:registerProfile name=quot;defaultquot; title=quot;AdvancedDocument Profilequot; directory=quot;profiles/defaultquot; description=quot;Extension profile for the AdvancedDocument Productquot; provides=quot;Products.GenericSetup.interfaces.EXTENSIONquot; /> <genericsetup:upgradeStep title=quot;Update Catalogquot; description=quot;Update the Catalogquot; source=quot;0.4quot; destination=quot;0.5quot; handler=quot;Products.AdvancedDocument.upgrades.updatecatalog.updateCatalogquot; sortkey=quot;1quot; profile=quot;Products.AdvancedDocument:defaultquot; /> </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=quot;1.0quot;?> <import-steps> <import-step id=quot;versioningsetupquot; version=quot;20070828-01quot; handler=quot;Products.AdvancedDocument.exportimport.versioningsetup.versioningSetupquot; title=quot;Versioning Setupquot;> <dependency step=quot;contentquot;/> 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): quot;quot;quot;Setup portal_factory quot;quot;quot; 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=quot;http://namespaces.zope.org/zopequot; xmlns:plone=quot;http://namespaces.plone.org/plonequot;> <plone:portlet name=quot;portlets.Adsquot; interface=quot;.portlets.ads.IAdPortletquot; assignment=quot;.portlets.ads.Assignmentquot; renderer=quot;.portlets.ads.Rendererquot; addview=quot;.portlets.ads.AddFormquot; editview=quot;.portlets.ads.EditFormquot; /> </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