Ouch, should be
@service.xmlrpc not @service.xmlrpc() Massimo On Sep 7, 6:24 am, Johann Spies <[email protected]> wrote: > While trying out the example wiki from the new manual I get the following > error: > > Traceback (most recent call last): > File "gluon/restricted.py", line 178, in restricted > exec ccode in environment > File "/var/www/web2py/applications/wiki/controllers/default.py", > line 92, in <module> > @service.xmlrpc() > TypeError: xmlrpc() takes exactly 2 arguments (1 given) > > And the relevant lines: > > service=Service(globals()) > > @service.xmlrpc() > def find_by(keyword): > "finds pages that contain keyword for XML-RPC" > return db(db.page.title.lower().like('%' + keyword + '%'))\ > .select().as_list() > > This was a copy and paste from the manual. What should it be like? > > Regards > Johann --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

