29 Sep
2004
29 Sep
'04
6:57 p.m.
Bryan Simmons wrote at 2004-9-28 21:41 -0400:
Suppose I have a zope product, or an Archetype-based content-type, like ATEvent. If I use __implements__ to define another content-type, will my new content-type inherit the ATEvent schema?
I do not think the "__implements__" does anything beside a bit of documentation and support for a lookup by interface during factory lookup (only used to create indexes, AFAIK) It does not control schema extension... Instead, you would define a new Archetype class and use class MyNewATClass(BaseClass1, BaseClass2, ...): schema = schema1 + schema2 + ... + Schema(...) The "schema_i" can be schemas from base classes or from somewhere else. -- Dieter