I did delete it accidentally. Thank you for the quick spot.
On May 7, 12:12 am, mdipierro <mdipie...@cs.depaul.edu> wrote: > works for me with 1.77.3 > > did you delete > > def call(): return service() > > On May 6, 11:08 pm, Matthew <matthew.g.nor...@gmail.com> wrote: > > > I have a simple service running in web2py 1.74.6 and 1.77.3. In the > > older version, the service works great. In the newer version, the > > "invalid function" message is returned. Here is my code: > > > from gluon.tools import Service > > service = Service(globals()) > > > @service.json > > def hello(): > > return 'Hello!' > > > And here is how I call refer to it from the HTML page: > > > {{=URL(r=request, f='call/json/hello')}} > > > Is there a change between how services are called? The > > documentationhttp://web2py.com/book/default/section/9/2?search=serviceslooksthe > > same. > > > Thanks, > > Matthew