Re: Our story for re-using content types

Maurits van Rees <news.maurits-qWit8jRvyhVmR6Xm/[email protected]>
Newsgroups gmane.comp.web.zope.plone.archetypes.devel
Message-ID <[email protected]>
Martin Aspeli, on 2006-04-03:
> I may build some clever functionality into Staff and Project, but any
> organisation wishing to use this product will probably want to manage their
> own metadata and view templates for staff information and project
> information. The problem is - how do they re-use this?

(snipped five ways)

Way number 6:

Add a new Product AAAPatch (Triple-A Patch, alternatively called
AAAMonkey) with an __init__.py of two lines, in our case:

from Products.Archetypes.ExtensibleMetadata import ExtensibleMetadataSchema
ExtensibleMetadataSchema['creators'].widget.visible = {'edit' : 'hidden', 'view' : 'visible' }

Then makes sure this loads very early; that's why it is called
AAAPatch. :)

-- 
Maurits van Rees | http://maurits.vanrees.org/ [NL]
            Work | http://zestsoftware.nl/
       GnuPG key | http://maurits.vanrees.org/var/gpgkey.asc
"Do only what only you can do." --- Edsger Wybe Dijkstra



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.