[Zope-CMF] Adding properties to existing CMF-Types

Tres Seaver tseaver@zope.com
10 Sep 2002 09:26:21 -0400


On Tue, 2002-09-10 at 09:25, Kevin Carlson wrote:
> If your new type closely resembles an existing CMF type, you have the option
> of creating a new copy of the type in portal_types and adding new properties
> to instances of the new type.  Make sense?

There is no non-programmatic way to do this, as the "type" of the object
does not (yet, anyway) have convey any way to signal extra properties. 
One way to accomplish what you ask is to use a ScriptableTypeInformation
object, and have the PythonScript which creates an instance also add
properties.  Another way to do this would be to use a ZClass, derived
for instance from CMFDefault.Document.

Tres.
-- 
===============================================================
Tres Seaver                                tseaver@zope.com
Zope Corporation      "Zope Dealers"       http://www.zope.com