[Zope] PythonMethod problem

Philipp Auersperg zope@philosoft.at
Mon, 11 Dec 2000 10:24:27 +0100


PythonScripts will come with Zope 2.3


How did you call the method?
perhaps you forgot the 'self'
your call should look like this:

self.foo(...)

phil

*********** REPLY SEPARATOR  ***********

On 10.12.2000 at 16:22 kosh wrote:

>I know I am still using PythonMethods however I have not seen Python
>Scripts out yet for 2.2.4.
>
>Okay here is the problem. How do I call one PythonMethod from another
>PythonMethod?
>
>Example
>
>object foo is a python method and it takes a='',b='',c='',d=''
>
>does stuff
>returns a string
>
>
>foo_spec takes parameters a1='',b1=''
>it should return foo(a=a1,b=b1)
>
>However trying to call that foo gives an error.
>
>I get a NameError on foo when it is used in foo_spec. However using foo
>directly does work however I want to make easier customized interfaces for
>users.
>
>Thanks
>
>
>_______________________________________________
>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 )