I'm trying to come up to speed on Zope and one idea I have is to take a small website that I worked on and put it into Zope. Does anybody have any tips on a good way to "zopeify" an existing website? What I would like to be able to do is get the site working from within Zope and then spend some time refactoring the site to take better take advantage of Zope's capabilities. Unfortunately I don't have a good model on how to reorganize things to better fit the Zope environment. I would be glad to hear any tips or ideas on good ways to organize a Zope web site. Thanks. James Howe internet: mailto:jwh@allencreek.com Allen Creek Software, Inc. compuserve: 73577,2005 Ann Arbor, MI 48103 pgpkey: http://ic.net/~jwh/pgpkey.html
Consider the following situation (all classes live in a single product and are derived from Object Manager, so have a subobjects-menu) A-B-C a-b-c I want to generate an object of type b in C, so in the subobjects-menu of C I´d like to have a b-object (which does not show up). Is this possible? It would be quite nasty to flatten the hierarchy like A-B-C a b-c b shows up in the global available objects after that, which is not what I want. B.T.W. The exact hierarchy is T+-A-B-C `-a-b-c so everything in T is hidden from the outside, but inside T I`d like to see everything. I hope there´s a solution to that problem, otherwise i`m severely stuck in my class design.. -- Tom
"James W. Howe" wrote:
I'm trying to come up to speed on Zope and one idea I have is to take a small website that I worked on and put it into Zope. Does anybody have any tips on a good way to "zopeify" an existing website?
You can use fsimport.py to import the old site to zope. I haven't seen it in the new site, but it can be found at http://www.zope.org:8080 along with instructions. It does work in Zope 2.0.1.
What I would like to be able to do is get the site working from within Zope and then spend some time refactoring the site to take better take advantage of Zope's capabilities. Unfortunately I don't have a good model on how to reorganize things to better fit the Zope environment. I would be glad to hear any tips or ideas on good ways to organize a Zope web site.
I'm still a neophyte Zopista (Zopisto?), but here goes: Well... Your hierarchy should go from global to specific. all global things should live in the root folder (or as a product), and areas that are different should be in their own folder. use standard_html_header and standard_html_footer in a way that allow them to automatically change for the context (so that areas are different, but still globally "branded"). I do this by having a line: <dtml-if local_header><dtml-var local_header></dtml-if> after the things I specify in standard_html_header. If you have stylesheets, you can do the same- I have a css_sheet in the root directory (called by standard_html_header) that uses local_style the same way local_header is used. I find this is a great way to leverage acquisition. A section can have a local_style, and then be overridden by a subfolder's local_style. Same with local_header. You can also do this for any images you call using <dtml-var> in standard_html_header. -- mindlace Disclaimer: Any use of this email, in any manner whatsoever, will increase the amount of disorder in the universe. Although no liability is implied herein, the reader is warned that this process will ultimately lead to the heat death of the universe.
On Mon, 18 Oct 1999, Ethan Fremen wrote:
You can use fsimport.py to import the old site to zope. I haven't seen it in the new site, but it can be found at http://www.zope.org:8080 along with instructions. It does work in Zope 2.0.1.
Zope2 also has load_site.py program. I am working on improving this - hope to have it published in 2-3 weeks. For cuurent work search the mail archives for my letters with subject "load_site.py patch1 final". Oleg. ---- Oleg Broytmann Foundation for Effective Policies phd@phd.russ.ru Programmers don't die, they just GOSUB without RETURN.
participants (4)
-
Ethan Fremen -
James W. Howe -
Oleg Broytmann -
Tom Schwaller