Can you please open a ticket about this? On Friday, 1 March 2019 04:07:28 UTC-8, Carl Hunter Roach wrote: > > I've been remiss and skipped too may Web2py updates. > > I've now updated from web2py v2.14.6 to web2py v2.18.2 > > db.py > > openings_service = Service() > > controller.py > > @openings_service.json > def submit_openings(): > ... > > > An external program calls my Web2py service and the function > submit_openings() > The caller has passed in a parameter and even though my `def` doesn't > define a parameter I was able to access the required parameter via `request` > > After the update to Web2py 2.18.2 the call no longer succeeds. > > TypeError: submit_openings() takes no arguments (1 given) > > I can see why this no longer works and the fix is simple; redefine the > `def` in my code as: > > @openings_service.json > def submit_openings(openings): > > > But I'd like to know what changed in Web2py? Mainly to confirm that I am > using Web2py correctly. > >
-- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.