Hi Martin!

Martin Aspeli wrote:
Just trying to get an overview - are there any plans or code (CMF 2?) to make it possible to use Z3 content types as first-class citizens in CMF? That is, make them available in add menus, make actions/tabs appear on them, let them use method aliases, make them catalog aware and so on, without necessarily inheriting from PortalContent.

Alec Mitchell's plone_schemas product lets you use such types in Plone, though he derives from CMF's PortalContent (as I recall) and manually constructs an FTI.

AFAICS Five content has to inherit from PortalContent and to implement a subset of IDublinCore ('Title', 'Description' and 'Type').

At least one FTI is necessary to define a portal type on top of the content type.

I can see some great advantages to leveraging Z3's content type system, not at least before they encourage easier re-use. That's not to say that we can't start to write content types using CMF (or Archetypes as the case may be in the Plone world) but presenting Z3 interfaces and offering adapters and get many of the same benefits, but I'd really like to settle on one content type system in the long run, and I think Z3 schemas are a nice approach.


Who has experience with this? What holes are there to be plugged before this stops being a slightly awkward marriage between old and new code?

Add views don't play well with the types tool. IMHO refactoring the content construction process and getting rid of CMFCatalogAware have the highest priority. For both tasks we have to refactor a lot of code using Five's events machinery.



Zope-CMF maillist  -  Zope-CMF@lists.zope.org

See http://collector.zope.org/CMF for bug reports and feature requests

Reply via email to