[Zope] When Inheritance ISN'T Such A Good Idea...

beno zope@thewebsons.com
Sat, 02 Aug 2003 01:15:25 -0400


At 11:26 AM 8/1/2003 -0500, you wrote:
>>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.)

Thanks for the direction.
beno