Attention

This document was written for an old version of Plone, Plone 2.5.x, and was last updated 1569 days ago.

To learn how to upgrade to the current version of Plone, read the upgrade manual.

Embrace and Extend Existing Products: The Zope 3 Way

With Zope 3 techniques (also available in Zope 2) you can cleanly extend an existing product without changing any of its code directly. In this tutorial we add annotations to a content type based on keywords. The use case we have is: extending Quills. The code is in the keywordadapter product in the collective.

  1. Introduction Use case: extending Quills
  2. Extend with Zope 2 We could extend Quills in the Zope 2 way, but is that the best option here?
  3. Zope 3: A New Hope One general strategy and one Quills specific strategy
  4. Event handler zmcl and code for the event handlers
  5. Utility zcml and code for the utilities
  6. Current Status We take a step back and look where we are.
  7. Adapter zcml and code for the adapters
  8. Annotations Adding and showing annotations
  9. Conclusions Zope 3 is the way to go!

All content on one page (useful for printing, presentation mode etc.)

 

Contribute

Something wrong or out of date? Anybody can edit or create a new article in the knowledge base. Simply create an account on this site, log in, and click the Edit button to contribute.