[Zope] When Inheritance ISN'T Such A Good Idea...
J Cameron Cooper
jccooper@jcameroncooper.com
Fri, 01 Aug 2003 11:26:00 -0500
> Search engines don't like Web sites with deep directory structures. I
> use such structure to develop my Web sites to take advantage of
> inheritance. I keep all my Python scripts in a separate directory as
> well as the basic content of each page. This, of course, makes things
> neat and tidy in my Zope. So I don't want to simply throw everything
> in the root dir! Is there a way to call scripts and Template Pages
> from other pages such that it renders as a simple URL without deep
> directories (e.g., http://mysite.com/main.html ) or frames?
Just to be picky, it's acquisition rather than inheritance. Certainly
they're similar concepts, but not quite the same.
There is a beast called TransparentFolder that does what you describe:
reverse acquisition.
http://www.zope.org/Members/hathawsh/TransparentFolders
It has some known performance consequences.
If you really mean "call", then you can do things like
"root.scripts.someScript". If you mean "link to", then I'm afraid that
things in general live where they live.
There are also things like PortableHole, MovedObject, References, et al.
(Also Redirector and Rewriter, which I never did get working.)
--jcc
--
"My point and period will be throughly wrought,
Or well or ill, as this day's battle's fought."