[Zope] Python calling python?
J Cameron Cooper
Mon, 03 Mar 2003 17:16:26 -0600
> If I try to import I get 'not authorized'.
Import is not available in Python Scripts. So it's never authorized.
> If I try to access it the same way I do ZSQL methods
> 'context.whatevername()' I get "whatevername" not defined.
That should work if 'whatevername' is in 'context'. Find out what
'context' is and make sure it acquires 'whatevername'. Depending on your
organization, 'container' may be better, as it is more explicit.