[Zope] symbolic links or invisible objects..?

Dieter Maurer dieter@handshake.de
Wed, 30 Aug 2000 22:02:49 +0200 (CEST)


Geoffrey L. Wright writes:
	... symbolic links ...

If your content is simple, i.e. does not contain URL references,
then symbolic links can easily be emulated with DTML methods.

Suppose, you have the following structure:

 A/
 A/A1/
 A/A1/a1
 ....
 A/A1/an

 A/B1/b1
 ....
 A/B1/bn

 and you want "A/B1/bi" be a symbolic link to "A/A1/ai",
 then "bi" would be the following DTML method:
 <dtml-with "A.A1"><dtml-var ai></dtml-with>.

 This will not work, if "ai" make a URL reference to an "aj"
 unless "aj" and "bj" have the same id and "bj" is
 a symbolic reference to "ai".


For more complex situations, you may use the product SiteAccess
(--> zope.org) to redirect requests transparently according
to situation.

You may look at
	URL:http://www.dieter.handshake.de/pyprojects/zope/Localizer.py
This is used as a SiteAccess AccessRule for localization.
Requests going to a folder controlled by this rule are
served from this folder, if possible.
If not possible, the request is redirected to a different
folder.

I think, this method can be abused to get what you want.


Dieter