At 07:59 PM 1/11/2003 +0100, you wrote:
beno wrote at 2003-1-11 12:21 -0400:
I have a python module that performs flawlessly from the Linux command prompt, but when I put it in my Extensions dir and try to import it, HTTP Error 500 is thrown. What went wrong? File in the Extensions folder are not meant to be imported (but read in a special way, only by Zope).
But your files to be imported elsewhere. The suggested place would be "lib/python/...", if you are using an "INSTANCE_HOME" (search "Zope.org" for an explanation) setup or "lib/python/Shared/<your_unique_name>/...".
An alternative would be to include the "Extensions" folder in your PYTHONPATH (read the Python documentation, for details).
I found out what I did wrong. The function name wasn't the same as the module name as it had been with previous (less complex) scripts I had written. My bad ;) Thanks, beno