On Saturday, January 21, 2017 at 8:52:55 AM UTC-8, Anthony wrote: > > > I created an issue here: https://github.com/web2py/web2py/issues/1561 >> >> I can probably do a pull request, but wanted to see if anyone knows of a >> reason why the existing service functionality restricts the passed >> arguments, instead of just passing them all to the service function, as >> request.restful does. >> > > I'm not aware of any reason for the current restriction. > > This brings to mind another possible workaround -- you can monkey patch > universal_caller in gluon.tools. >
Yeah, that is a possibility. That is obviously more risky though as it would globally affect all code in all apps. I made a pull request (https://github.com/web2py/web2py/pull/1566). My modification adds a new FlexibleService class that just passes all arguments to the service function; this way it doesn't interfere with anything the existing Service does. It also uses a method instead of a top-level function for the equivalent of universal_caller, so that subclasses can override it to add more complex argument-matching if they want. -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.

