[Zope] Using Python Script as module?
ender
kthangavelu@earthlink.net
Sun, 4 Mar 2001 07:51:37 -0800
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?
>>>>
I haven't played with python scripts too much but with python methods you
would have to declare your functions as global
so
def fa(): pass
def fb():
global fa
fa()
hth
kapil