You are here: Home Plone Basics Allow special python scripts in plone
Search
Advanced Search…
E-Mail

Webmail: webmail.wyden.com

E-Mail Preferences: postfix.wyden.com/users

E-Mail Administration: postfix.wyden.com

Statistics
Total: 463
Total Pages: 284
Total Folders: 87
Total Files: 18
Total Links: 26
Last modification: 03.02.2012 16:00
 

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