To understand the basic behaviour of web2py, you can try following:

In the default controller default.py make a function, f.e.
allstorylines():

def allstorylines():
    rsStorylines = db().select(db.storyline.ALL)
    return dict(rsStorylines=rsStorylines)

In addition you need a view default/allstorylines.html:

{{extend 'layout.html'}}
{{=rsStorylines}}

Now, write into your browser the address:
localhost:8000/applicationname/default/allstorylines

and you should see <table> of storyline records.

If this works, you can improve it in 2 ways:

-- change the db().select() in the controller to receive just records
you want to see,

-- change the view, f.e. instead of {{}} you can try list records in
cycle:
    <table>
    {{for recStoryline in rsStorylines:}}
        <tr>
        <td>{{=recStoryline.fieldname or ''}}</td>
        <td>{{=.......}}</td>
        </tr>
        {{pass}}
    </table>

 or use some compoment to display records, f.e. see:
   http://www.trirand.com/blog/jqgrid/jqgrid.html

Reply via email to