xml-rpc module question
Scott Hathaway
slhath at home.com
Tue Dec 19 19:29:47 EST 2000
It is at a level equal with call.
I made the changes you suggested, but I am still having trouble.
Anyone have any ideas?
Scott
"Jeff Kunce" <kuncej at mail.conservation.state.mo.us> wrote in message
news:j7L%5.879$VF3.1528 at news.more.net...
> > I have taken the xml-rpc module and added the following to the call
area:
> >
> > def CubeIt(x):
> > return x**3
> >
> > def call(self, method, params):
> > if method == 'CubeIt':
> > return CubeIt(params)
> >
>
> This is a wild guess, but did you define CubeIt() at the
> global level of the module, or was it indented the same
> as call() - making it a method of the RequestHandler class?
>
> If the former, I'm not sure what the problem is.
>
> If the latter, try:
>
> def CubeIt(self, x):
> return x**3
>
> def call(self, method, params):
> if method == 'CubeIt':
> return self.CubeIt(params)
>
>
> --Jeff
>
>
>
More information about the Python-list
mailing list