[prev in list] [next in list] [prev in thread] [next in thread]
List: zope
Subject: Re: [Zope] Archetype or Product inheritance
From: Dieter Maurer <dieter () handshake ! de>
Date: 2004-09-29 18:57:45
Message-ID: 16731.1449.468862.546868 () gargle ! gargle ! HOWL
[Download RAW message or body]
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
_______________________________________________
Zope maillist - Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic