[Zope] Re: How to break up an external method over multiply source files

Lucas Hofman lucas.hofman at pgs.com
Tue Apr 19 09:32:04 EDT 2005


Lucas Hofman wrote:

> Sorry, I finished typing a little to early. I get an importerror:
> Traceback (innermost last):
>   Module ZPublisher.Publish, line 101, in publish
>   Module ZPublisher.mapply, line 88, in mapply
>   Module ZPublisher.Publish, line 39, in call_object
>   Module Products.ExternalMethod.ExternalMethod, line 216, in __call__
>   Module Products.ExternalMethod.ExternalMethod, line 157, in 
> reloadIfChanged
>   Module Products.ExternalMethod.ExternalMethod, line 141, in getFunction
>   Module App.Extensions, line 148, in getObject
>    - __traceback_info__: ('/data/technology/Extensions/Import.py', 
> 'Import')
>   Module /data/technology/Extensions/Import.py, line 6, in ?
> ImportError: No module named Translate
> 
> (Translate.py is in the same folder as Import.py)
> 

The solution was to set the path variable in zope.conf to 
$Instance/Extensions.

Thanks, Lucas



More information about the Zope mailing list