If you benefit from web2py hope you feel encouraged to pay it forward by contributing back to society in whatever form you choose!
Marked:
Package type:
plugin

Repository

  • Project:dynamic_rest
  • Type:Git
  • Project's site
  • Root location:https://github.com/childsish/web2py_plugin_dynamic_rest.git

Links

License


Related slices

Comments (2)

  • Login to post



  • 0
    mirko 10 years ago

    Hi,

    I'm trying to run the example provided on github, it seems to be working except for delete, I get the message "" in chrome console :

    delete: {
    value: function(id) {
    if (!this.map.hasOwnProperty(id)) {
    throw "Access prohibited"
    }
    It looks like id passed as parameter is an index and not and id, any ideas ?
     
    Thanks!
     
    - Mirko
     
    replies (1)
    • liam-childs-11306 10 years ago

      Sorry about the delay, I'm buried under work at this end. I've made some changes that enable delete (before it wouldn't delete server-side...). I've tested in Chrome. Hopefully it works for you too.


  • 0
    mirko 10 years ago

    Hi,

    I'm still getting "Access prohibited" at line 196 of dynamic_rest.js

    If I comment it out, it tries to delete record id 0 when you try to delete the first record which doesn't exist...

    Thank you for help,

    Mirko


Hosting graciously provided by:
Python Anywhere