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


  • 0
    sif-baksh-10957  9 years ago

    Do you have an example how to use it with out a DB?

    New to web2py

    I'm making a restful API call that returns a JSON output

    I would love to use this method.

    Thanks in advance

    replies (1)
    • iiijjjiii 9 years ago

      The code base has a 'Web Services' example which may help. The example uses xml but the solution for json would be similar. If you intend to make calls within javascript code, it may be simpler to interface with jqGrid directly as it was intended in javascript.

Commented on:

Here is a JqGrid application that includes a JqGrid module that allows you to insert jqgrid tables in web2py pages using python. git clone https://iiijjjii@github.com/iiijjjii/jqgrid.git The module includes functionality for searching and form editing as well as the general features, pagination, sorting on columns, formatting and navigating available with jqgrid. The application includes examples of usage in the default.py controller.

Hosting graciously provided by:
Python Anywhere