[Zope] Class templates / meta classes
douwe@oberon.nl
douwe@oberon.nl
Wed, 17 Jul 2002 19:00:13 +0200
> Hi
>
> I am building a fairly simple On-line Shopping Product (I know there
> some out there already, but please humour me) with a number of
> ZClasses. Different shop instances will obviously need to be
> customizeable, for example the properties available for items in a
> shop might be different from shop to shop.
>
> How can I use my generic Shop Product to make a different Product each
> time I deploy a new shop? I am sort of looking to make a meta-class.
>
> Does this make any sense to anyone?
>
Hi,
You can always add properties to instances of a Z Class by calling
manage_AddProperty.
You could have a folder with prototype instances of your Z Class and copy
them when
you need an instance, or you could have different edit forms that add
properties when
needed.
Douwe