Hi, I am interested in having the same object appear as the child of two different containers. These containers may distant from each other in the object hierarchy. In particular, I autogenerate a list of subtopics (child folders) for several areas of my website, but would like a certain folder to appear in more that one listing because it can be classified in multiple ways. Is there a way to accomplish this? Is there anything in Zope like a symbolic link? Thank you for any advice or hints that you can provide. Best Regards, gyro
--On 11. April 2006 04:27:50 -0600 gf <gyromagnetic@gmail.com> wrote:
Hi, I am interested in having the same object appear as the child of two different containers. These containers may distant from each other in the object hierarchy. In particular, I autogenerate a list of subtopics (child folders) for several areas of my website, but would like a certain folder to appear in more that one listing because it can be classified in multiple ways.
You might try this: <http://www.dieter.handshake.de/pyprojects/zope/index.html#bct_sec_3.9> -aj -- ZOPYX Ltd. & Co. KG - Charlottenstr. 37/1 - 72070 Tübingen - Germany Web: www.zopyx.com - Email: info@zopyx.com - Phone +49 - 7071 - 793376 E-Publishing, Python, Zope & Plone development and consulting
gf wrote at 2006-4-11 04:27 -0600:
I am interested in having the same object appear as the child of two different containers. These containers may distant from each other in the object hierarchy. In particular, I autogenerate a list of subtopics (child folders) for several areas of my website, but would like a certain folder to appear in more that one listing because it can be classified in multiple ways.
In principle, the ZODB allows you to place the same object into arbitrary many containers. Keep in mind however, that apart from the ZODB all other parts of Zope treat the copies as different: the have different URLs, different "PhysicalPath"s, may report (the same modification) to different catalogs (in this case, only a single catalog is informed, not all as you probably would like).
Is there a way to accomplish this? Is there anything in Zope like a symbolic link?
Andreas already told you about my "Reference" products. There is also a "Symlink" product of Shane. And there is the "PortableHole" product that maps a complete folder onto a different location. No solution is completely satisfactory... -- Dieter
On 4/11/06, Dieter Maurer <dieter@handshake.de> wrote:
gf wrote at 2006-4-11 04:27 -0600:
I am interested in having the same object appear as the child of two different containers. These containers may distant from each other in the object hierarchy. In particular, I autogenerate a list of subtopics (child folders) for several areas of my website, but would like a certain folder to appear in more that one listing because it can be classified in multiple ways.
In principle, the ZODB allows you to place the same object into arbitrary many containers.
Keep in mind however, that apart from the ZODB all other parts of Zope treat the copies as different: the have different URLs, different "PhysicalPath"s, may report (the same modification) to different catalogs (in this case, only a single catalog is informed, not all as you probably would like).
Is there a way to accomplish this? Is there anything in Zope like a symbolic link?
Andreas already told you about my "Reference" products. There is also a "Symlink" product of Shane. And there is the "PortableHole" product that maps a complete folder onto a different location.
No solution is completely satisfactory...
-- Dieter
Hi, My sincere thanks to Andreas, jcc, and Dieter for the great suggestions. It looks like one of these products will certainly fill my needs. Best Regards, gyro
participants (3)
-
Andreas Jung -
Dieter Maurer -
gf