[Zope-dev] The difference between product Properties and Attributes?

Richard Ettema richard.ettema@yoursolutions.co.uk
Tue, 17 Jul 2001 11:27:16 +0100


Hi,

I have been looking through the Zope Developers Guide (PollProduct Example)
and also How-To's to help with creating a Product.
I am a bit confused whether there is any difference between properties in
Zope and attributes you create in a Product.
I have seen 2 different ways to access attributes created in a product:
The first is by using _properties and specifying your attribute name/type so
you can view/edit them on the properties page.
The other is to create a dtml page specifically to view/edit the attributes
you have by calling methods from your product to retrieve/save them.
Do these 2 ways store/retrieve the attributes in Zope in different ways?  Is
one approach better than the other?
Also...
I am creating an object based on the Folder object. I only want to allow
certain objects to be created inside this folder'ish object. Can the objects
available in the drop-down be restricted like you can when creating ZClasses
inside Zope?

Thanks for your help.

Richard