tags:

views:

38

answers:

1

I'm using Plone with Python scripts, I understand the scripts are restricted in Plone and I also understand that I need to create python scripts in the Extensions folder for a fully functional script.

But how do I send information between the two scripts? For example script1.py is located in the ZMI and has a directory which is a URL, can a URL be exported as a python path? Script2.py is loacted in the Plone extensions folder, how do i send information from script1 to script2? and vice versa?

Also, Script2.py must be called by script1.py

Any help would be grateful.

+1  A: 

Python scripts in the Extensions folder are usually used as External Methods. This section of the Zope book explains External methods in more detail. Once this is created, you can call it by what id you give it in the ZMI by the other script or template in zope. You should be able to call it via your other script.

dvschramm