hi. can anyone tell me why in the world zope gives me these snide "__init__" is an invalid variable name because it starts with "_" "__repr__" is an invalid variable name because it starts with "_" "__name__" is an invalid variable name because it starts with "_" errors when i try to run a script that works outside of zope. i'm relatively new to zope, and very new to python. nevertheless, i know that i'm using __init__, __name__, and __repr__ correctly. thanks, adam
On Thu, Feb 07, 2002 at 10:37:35AM -0600, Adam Garratt wrote:
"__init__" is an invalid variable name because it starts with "_"
Zope does not allow you to publish objects that starts with an underscore. Oleg. -- Oleg Broytmann http://phd.pp.ru/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN.
Adam Garratt writes:
can anyone tell me why in the world zope gives me these snide
"__init__" is an invalid variable name because it starts with "_" "__repr__" is an invalid variable name because it starts with "_" "__name__" is an invalid variable name because it starts with "_"
errors when i try to run a script that works outside of zope. i'm relatively new to zope, and very new to python. nevertheless, i know that i'm using __init__, __name__, and __repr__ correctly. Names starting with '_' are private in Zope and cannot be accessed in TTW code. Use an External method (or disk based product) when you need to access such attributes.
An alternative would be XXPythonScripts. Dieter
participants (3)
-
Adam Garratt -
Dieter Maurer -
Oleg Broytmann