Well I will be first in line to purchase your next version. Keep up
the *great* work. I'm a newbie, I know, but there's still much that
isn't answered by the docs, so please be patient with my questions:
1. Ok one of my xmlrpc functions is "xrGetColDefs" - how would I
decorate this?
@services.xmlrpc
def xrGetColDefs( ):
pass
Err... what is this 'services' in the code example? Do I have this
decoration correct?
2. What is a good timeout for the webserver for xmlrpc functions? Any
idea?
---
Rb
On Jul 27, 6:01 pm, mdipierro <[email protected]> wrote:
> You should not decorate call but you should decorate functions you
> want to expose via the "call" handler. This is not the the book but it
> will be in the new book, very soon
>
> Massimo
>
> On Jul 27, 2:05 pm, rb <[email protected]> wrote:
>
> > The example code in a controller contains the call() function as shown
> > below.
>
> > def call():
> > """
> > exposes services. for example:
> > http://..../[app]/default/call/jsonrpc
> > decorate with @services.jsonrpc the functions to expose
> > supports xml, json, xmlrpc, jsonrpc, amfrpc, rss, csv
> > """
> > return service()
>
> > Chapter 10 of the manual gives a brief example of how to use xmlrpc,
> > but it does not mention the use of any decorator (like
> > "@services.xmlrpc"). In fact, "services()" is not even mentioned. What
> > is this? Should I be decorating my xmlrpc functions?
>
> > ---Rb
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---