Does FSPythonMethod exist? On disk, non-restricted Python methods?
I develop for CMF largely by working off the filesystem (to easier use CVS), so I create all my ZPTs, PythonScripts, etc., using FileSystemDirectoryViews (FSDVs). I'd like to be able to create on-disk PythonScripts that aren't security restricted in the way a normal PythonScript is. Using External Methods isn't quite suitable because, while they aren't security limited, they can't exist in a FSDV; you have to add them to a normal Zope folder. Furthermore, by keeping the actual source code in an Extension file outside my CVS tree, it's a bit of a pain. k_vertigo has a Product (http://www.zope.org/Members/k_vertigo/Products/Products/FileSystemSite) that introduces FSExternalMethods, which are external methods that can be kept in a FSDV. This lets me create the External Method on disk, but still has the (smaller) problems of the actual code being in a separate directory. Is there a way to easily tweak the PythonScript product to remove its security limitations? Then I could copy it and use the modified copy for my unlimited scripts. Or (less pretty) a way to have ExternalMethods read from a file in their own directory? Or other ideas about the best way to go about this? Thanks! - j. -- Joel BURTON | joel@joelburton.com | joelburton.com | aim: wjoelburton Independent Knowledge Management Consultant
Joel Burton wrote at 2003-7-2 09:11 -0400:
... Is there a way to easily tweak the PythonScript product to remove its security limitations? Then I could copy it and use the modified copy for my unlimited scripts. Or (less pretty) a way to have ExternalMethods read from a file in their own directory?
Have a look at the (old) "XXPythonScripts" (or similar) product and analyse how it differs from the normal "PythonScripts". Patch "FSPythonScript" in a similar way. (Note: I have never looked at "XXPythonScripts"). Dieter
On Fri, Jul 04, 2003 at 09:33:05PM +0200, Dieter Maurer wrote:
Joel Burton wrote at 2003-7-2 09:11 -0400:
... Is there a way to easily tweak the PythonScript product to remove its security limitations? Then I could copy it and use the modified copy for my unlimited scripts. Or (less pretty) a way to have ExternalMethods read from a file in their own directory?
Have a look at the (old) "XXPythonScripts" (or similar) product and analyse how it differs from the normal "PythonScripts". Patch "FSPythonScript" in a similar way.
(Note: I have never looked at "XXPythonScripts").
Thanks, Dieter, for the suggestion. Unfortunately, I've searched via Google, directly on zope.org, and through the Yahoo! interface to the mailing list, and can't find XXPythonScripts anywhere. The only results I find are you telling me & other people to search for it (!). Are you sure you have the name right? Or does anyone else know where this product, or something like (non-restricted Python Scripts) live? Thanks! - j.
Joel Burton wrote at 2003-7-6 11:59 -0400:
... Unfortunately, I've searched via Google, directly on zope.org, and through the Yahoo! interface to the mailing list, and can't find XXPythonScripts anywhere. The only results I find are you telling me & other people to search for it (!). Are you sure you have the name right?
No, I am never sure about details. It might have an additional 'X' at the front or be different in a slightly different way. Maybe a search for "PythonScripts unrestricted security" can reveal the product. Dieter
On Mon, Jul 07, 2003 at 12:37:57AM +0200, Dieter Maurer wrote:
Joel Burton wrote at 2003-7-6 11:59 -0400:
... Unfortunately, I've searched via Google, directly on zope.org, and through the Yahoo! interface to the mailing list, and can't find XXPythonScripts anywhere. The only results I find are you telling me & other people to search for it (!). Are you sure you have the name right?
No, I am never sure about details. It might have an additional 'X' at the front or be different in a slightly different way.
Maybe a search for "PythonScripts unrestricted security" can reveal the product.
Thanks, Dieter; a search for "XXXPythonScripts" turned up the right thing. Surprised that Google's spellchecking didn't suggest that. I'll post something to the list about my efforts to CMF-ify this as a FileSystem product, in case anyone else wants this feature. Thanks again! - j. -- Joel BURTON | joel@joelburton.com | joelburton.com | aim: wjoelburton Independent Knowledge Management Consultant
participants (2)
-
Dieter Maurer -
Joel Burton