You are here: Home Plone Basics Allow special python scripts in plone
Search
Advanced Search…
Statistics
Total: 412
Total Pages: 253
Total Folders: 83
Total Files: 14
Total Links: 26
Last modification: 30.08.2010 09:17
 

Allow special python scripts in plone

by Wyden Silvan last modified 11.11.2009 10:31

Add a folder in your products folder:

mkdir GlobalScripts

vi __init__.py

# Global module assertions for Python scripts
from Products.PythonScripts.Utility import allow_module

allow_module('re')
allow_module('urllib')

Dann kannst du einfach in deinem Custom python script z.Bsp: import re