Is there a document out there that lists which API functions map to which permissions settings? I'm going blind trying to find one.... Thanks, Damon.
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
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 )
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 )
Take a look at the portable hole stuff at http://www.zope.org/Members/TheJester ----- Original Message ----- From: "Joe Graham" <joe@aiobjects.com> To: <zope@zope.org> Sent: Saturday, February 09, 2002 1:50 AM Subject: RE: [Zope] Zope symbolic links
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 )
_______________________________________________ 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 )
But in your example, you won't need symlinks, yes? The two folders are usable via acquisition anyway ... Joachim ----- Original Message ----- From: "Joe Graham" <joe@aiobjects.com> To: <zope@zope.org> Sent: Saturday, February 09, 2002 2:50 AM Subject: RE: [Zope] Zope symbolic links
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 )
_______________________________________________ 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 )
On Friday 08 February 2002 04:38 pm, you wrote:
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
At 16:58 08-02-2002 -0500, Eron Lloyd wrote:
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).
Quite easily and simple, actually. Here's my take on it (from a previous message on the list. C U! -- Mario Valente At 19:04 07-08-2001 +0100, Mario Valente wrote:
Hi:
OK everyone, I've managed to get object links to work.
As discussed previously by others (re: object references) and asked by myself: I had the need to be able to refer to objects from different points of the folder hierarchy without duplicating those objects.
Yes I know that can be done *programatically*. That is not the idea.
The idea is to have a folder with differente widgets/components and to be able to copy and paste references to those widgets throughout the folder hierarchy. Of course that the usual copy/paste is not OK, since that *duplicates* the objects and as such further changes to the original object wont be reflected in the copies.
With something like this + Ordered Folders you are able to have an index_html that just renders the objects within a folder and you can then drop objects/widgets into the folder to produce a page.
What I did:
- edited CopySupport.py - copied the manage_pasteObjects method to a manage_pasteMonikers method - commented the #ob=ob._getCopy(self) line (the duplicate object part) - added a "Paste Ref" button to the lib/python/OFS/dtml/main.dtml file that calls the pasteMonikers method
""" <input class="form-element" type="submit"
name="manage_pasteMonikers:method"
value="Paste Ref." /> """
It works. It does what I want/need. When you change a reference, the original also changes. When you change the original, the references change. You can delete either the reference or the original and all is OK.
Issues/TODO
- find a way to distinguish references from the original (tried to change the meta_type at paste time but no luck). At least the meta_type/icon should change to provide a visual cue. - provide tool(s) to find impact of changing a reference. Provide a link from a reference object to the original. Provide a link from an object to its several references.
Comments and experiences are welcome.
Joe Graham writes:
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). A long time ago, Shane announced a "symlink" product (or similarly spelled).
With a bit of luck, you will find it in the mailing list archives. Dieter
Eckhoff, Damon writes:
Is there a document out there that lists which API functions map to which permissions settings? I'm going blind trying to find one.... If you are using an older Zope version (before 2.5) or use 2.5 together with "ZOPE_SECURITY_POLICY=PYTHON", then you can use my "DocFinder" product to find out the permission that protects a method
<http://www.dieter.handshake.de/pyprojects/zope> The new "cAccessControl" does not expose the necessary information, and therefore, "DocFinder" can only show the roles that are allowed to use the methods. You may try to help me to get the required information exposed by "cAccessControl". I already filed a Collector feature request, offering to make the necessary changes when they will later be part of the Zope core, but nobody responded... Dieter
participants (7)
-
Dieter Maurer -
Eckhoff, Damon -
Eron Lloyd -
Joachim Werner -
Joe Graham -
Mario Valente -
Phil Harris