RE: [Plone-users] How can you make python library available in python script
Thanks lupa ... I found a previous mail about this and gave it a try but still had the same 'access denied' security problem. ____________________________________________ Peter Millar -----Original Message----- From: +lupa+ [mailto:lupa@zurven.com] Sent: Friday, 6 August 2004 11:22 AM To: Peter Millar; plone-users@lists.sourceforge.net; zope@zope.org Subject: RE: [Plone-users] How can you make python library available in python script At 09:40 AM 8/6/2004 +1000, Peter Millar wrote:
Okay just found this article
http://www.zope.org/Members/pbrunet/ExternalMethodsBasicSummary
Seems like only a subset of the std python library is avail through scripts and it is recommended to use external methods ... I will try that.
Peter Millar
But sometimes you really do need something from a library in a python script. Here's how, although it is not recommended to use this functionality with abandon. Checkout the README.txt file in the python scripts area of your Zope installation (probably: python/Products/PythonScripts/README.txt). Then add: allow_module('urllib.unquote') or whatever module of your interesting python library to your __init__.py file and restart Zope. THEN you can use it in a python script. That's fine for you if you have trusted users ONLY on your system, but that's not good for a more general approach to life with Zope. That's why only a limited selection of modules are available in Python Scripts. Not that there's a whole lot of dangerous security breaches that would be opened up by access to unquote... +lüpa+ CalendarX.org CalendarX-0.2.10(beta) at Sourceforge
participants (1)
-
Peter Millar