Sorry, I finished typing a little to early. I get an importerror:
--On Dienstag, 19. April 2005 11:25 Uhr +0200 Lucas Hofman <[EMAIL PROTECTED]> wrote:
I have an external method a.py (in $INSTANCE_HOME/Extensions) that becomes to big to be in one python file.
I have put some functions in b.py (also in $INSTANCE_HOME/Extensions) and want to use them from a.py. However 'import b' in a.py does not work.
*Why* isn't it working? Errors? Tracebacks?
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)
Zope maillist - Zope@zope.org
** No cross posts or HTML encoding! **
(Related lists - http://mail.zope.org/mailman/listinfo/zope-announce