Hello, 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? thanks __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
On Tue, 17 Jul 2001 16:45:35 -0700 (PDT), you wrote: [_ in existing Python code]
Zope gives me an error that "attributes beginning with _ are not allowed"
Is there a way around this?
How about 1,$s/_/X/g in vi? Metareplace X with your favourite letter in the alphabet :-) This may have some side effects though. Regards, René Pijlman
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
participants (3)
-
Dieter Maurer -
P B -
Rene Pijlman