[Zope] Underscore in Python Modules

Dieter Maurer dieter@handshake.de
Wed, 18 Jul 2001 21:07:32 +0200 (CEST)


P B writes:
 > I have a number of python modules I would like to run
 > from ZOPE.  The problem is that they contain many
 > underscores and double underscores.
 > 
 > So when I try to import them as Python Scripts, Zope
 > gives me an error that "attributes beginning with _
 > are not allowed"
 > 
 > Is there a way around this?
If you use Zope 2.4, then you may be able to rename the
name on import.
I do however not know, whether the Python Script parser supports
these forms of import.


Dieter