I've added this as an issue.
https://github.com/web2py/web2py/issues/2122

On Sun, 3 Mar 2019 at 08:05, Massimo Di Pierro <massimo.dipie...@gmail.com>
wrote:

> 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 a topic in the
> Google Groups "web2py-users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/web2py/G-_M0yNe5wc/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>


-- 
Carl Hunter Roach
Bisham Barn Owl Group <http://bishambarnowlgroup.blogspot.com/>
Runnymede Ringing Group <https://www.runnymederinging.uk/>

Founder of Midnight 30 <https://midnight30.com>
Download Great Careers app
<https://itunes.apple.com/us/app/great-careers-job-search-on-your-side/id977007868?ls=1&mt=8>
Jobs at great companies you can commute to.

-- 
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.

Reply via email to