The backbone.js framwork defines the following request type map http://backbonejs.org/docs/backbone.html#section-153 // Map from CRUD to HTTP for our default `Backbone.sync` implementation. var methodMap = { 'create': 'POST', 'update': 'PUT', 'patch': 'PATCH', 'delete': 'DELETE', 'read': 'GET' };
but when I implement controllers/object.py @request.restful() def object(): def GET(*args, **vars): from gluon.serializers import json .... def PATCH(*args, **vars): ''' PATCH update only a few properties of one object ''' if request.args(0): old_record = table[getAccess(True)] .... the PATCH method is not working (chrome dev tools output) 1. PATCH http://localhost:8000/icvs/object/object/11 400 (Bad Request) jquery-2.1.1.min.js:4 So far I could not find the code in gluon that defines the allowed request methods. I would appreciate some help. -- 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.