[Zope] - about zope and object (product) publishing

Amos Latteier amos@aracnet.com
Fri, 29 Jan 1999 10:19:14 -0800


At 05:27 PM 1/29/99 +0100, Vladimir Tomasovic  wrote:

>i define object (product) in python, together with his behaviour and
>default displaying. well, it appears in products list and then i can ad it
>to any folder.
>
>what i dont know is how to change displayng of product. all i can do is
>change displaying of instance of product, but thats not ok. id like to
>define some properties for product, that i could change in products folder
>and that changes would appear in all instances of product. well, i can do
>it by changing python code, but that's bad solution, because i want object
>and (other than default) displaying to be independent.
>
>would you please let me know, or point to documents, where i could find how
>to define product properties, that are system-wide? i'm new to zope and
>python and could not resolve the issue.

There is not a good way to control global Product properties dynamically,
yet. The answer is 'Zope Classes' which have been on the drawing board
forever, and may actually emerge as code soon. I unfortunately cannot
promise any release date, yet :-(

However, the general rhythm of Zope is not to use global properties, but to
*acquire* properties and objects. This provides the kind of dynamic
property control you want. For example, suppose your Product uses a
property called 'myProductColor' to display itself. You can define this
property anywhere in the object hierarchy and let instances of your Product
acquire them from their parents. This schema gives you much more fine
grained control than simply having one global property for all of your
Products.

>i'd also like, if you let me know about other object publishing frameworks,
>that are open sourced. i was not able to find anything comparable to zope.

I am not aware of anything quite like Zope, but there are lots of other
interesting open source projects with a web app focus, like casbah, gamora,
jigsaw, bscw, and many many others.

-Amos