July 16th, 2001, 01:36 PM
Python code in Zope does not support "_"
It seems that ZOPE does not support Python variables that begins with "_".
I will get an error as such:
"_hi" is an invalid variable name because it starts with "_"
Anyone have any ideas why this is?
July 16th, 2001, 02:10 PM
I do not know the answer to your question. I was able to find this but don't know if it is related to your problem:
Objects are published by including them in a published module.
When a module is published, any objects that:
- can be found in the module's global name space,
- that do not have names starting with an underscore,
- that have non-empty documentation strings, and
- that are not modules
July 17th, 2001, 06:00 PM
I was reading my Core Python Programming book today and came across the following section. Again, I'm uncertain of it's relevance but thought it might help:
July 26th, 2001, 01:44 AM
Just a bit of history,
Way back before Zope had scripts (pre ver 2.?) the only way to access standard modules such as "string" were thus:
Not pretty and not much fun!
With the advent of scripts within Zope this is pretty much unnecessary. Obviously they cant remove the code for backwards comaptibility (thankfully or my site would require lots of rework).