[Zope] Using Python Script as module?
ender
kthangavelu@earthlink.net
Sun, 4 Mar 2001 07:49:33 -0800
On Sunday 04 March 2001 14:22, Janko Hauser wrote:
Hello, I try to define some helper functions inside of a `Python
Script` (PS).
Simplified example:
#
def fa():
print 'fa executed'
def fb():
fa()
fb()
return printed
#
This does not work, as the PS itself is apparently not a module
level namespace. I can call fa() directly, although. Is there some way
to call a function defined in the PS inside another function? Is there
something like the PS namespace?
_______________________________________________
Zope maillist - Zope@zope.org
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://lists.zope.org/mailman/listinfo/zope-announce
http://lists.zope.org/mailman/listinfo/zope-dev )