- about zope and object (product) publishing
hi all, company where i work among other thing creates web applications. we mostly program them as cgi scripts in perl, but we do not find it to be the best way. we'd rather find som product (framework), where we could do something like publishing objects. in this enviroment behaviour of object, and their displaying should be somehow independent. for example, i'd define object Guestbook, with it's behaviour. this object i'd use on different websites and for each website i'd define other way of displaying. we want this object publishing framework to be open source. we found zope and right now are evaluating it. i think it's nice and it fullfils many of our needs, but i have following problem: 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. thanks! 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. thanks one more time, have a nice day, bye Deckard (Vladimir.Tomasovic@kiss.sk)
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
Vladimir Tomasovic wrote:
for example, i'd define object Guestbook, with it's behaviour. this object i'd use on different websites and for each website i'd define other way of displaying.
...
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.
It depends on how you program your product. If instead of having your pages layout hardcoded in your product you add document objects that interact with your product, you've got it. The guestbook product in the contrib dir has the layout hardcoded. The P MySQL Wizard adds document objects that are editable. Another way is to have the hardcoded layout to acquire proprieties. My pages all have the standard_html_header and footer around them. These define the top and lateral navigation, just the central content of the page is changed (the navigation is managed with acquisition).
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.
Don't you know that there's nothing like Zope :-) []s -- Paulo Eduardo Neves PUC-Rio de Janeiro Pager: Central: 292-4499 cod. 213 99 64 ou use a URL: http://www.learn.fplf.org.br/neves/mensagempager.html
participants (3)
-
Amos Latteier -
Paulo Eduardo Neves -
Vladimir Tomasovic