[Zope] Zope symbolic links
Joe Graham
joe@aiobjects.com
Fri, 8 Feb 2002 18:50:08 -0700
Okay well what I had in mind was something like this:
I have a folder to represent website "a" and another folder to represent
website "b". i have another folder with some useful scripts and yet another
folder with some useful graphics / html and it would be nice for the sake of
tying things together with vhost_monster and apache to create a "virtual"
folder inside website "a" and website "b" folder.
exampe:
/[root_folder]
+/porn_layout_engine
+/lots_of_nice_pics_in_sequence
+/entertainment_site_a
+/->porn_layout_engine
+/->lots_of_nice_pics_in_sequence
+/entertainment_site_b
+/->porn_layout_engine
+/->lots_of_nice_pics_in_sequence
So it would seem that response.redirect() in the case of the ZMI would work,
but it's not really what I am after. I am just hoping to "external" folders
as if it existed in the child folder. I could use restricted traverse but
maybe there is a way to approach this issue in a uniform fashion? Maybe a
Zope product that does restricted traverse and can "mimic" the type it
points to. If someone can give me some pointers on how to approach this
then I would not mind giving it a try.
Okay so you see my dilema? Well if not at least hopefully the problem
domain (although fictional) is a little more interesting. :)
Regards,
Joe
-----Original Message-----
From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Eron
Lloyd
Sent: Friday, February 08, 2002 2:58 PM
To: Joe Graham
Cc: zope@zope.org
Subject: Re: [Zope] Zope symbolic links
Joe,
The most popular pattern for this is to do a
<dtml-call expr="RESPONSE.redirect('/myfolder1/mygoodstuff')"> in a DTML
method or Python script acting as a symlink. To my knowledge there is no way
else out of the box to do this (though it would be interesting to
implement).
HTH,
Eron
On Friday 08 February 2002 04:38 pm, you wrote:
> Hello,
> Is there a way to create "symbolic links" in Zope either by editing ZMI
> code or programmatically? Let's say I want to create a "pointer" to a
> folder I have someplace. Is there a straightforward way to accomplish
> this? Here is a very descriptive graphical example (hahaha).
>
> /[root folder]
> /myfolder1
> +mygoodstuff
> /myfolder2
> ->link_to_mygoodstuff
>
> Thanks
> -joe
>
>
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )
_______________________________________________
Zope maillist - Zope@zope.org
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://lists.zope.org/mailman/listinfo/zope-announce
http://lists.zope.org/mailman/listinfo/zope-dev )