I have two functions:
def eventList():
response.view='calendar/eventList.html'
rows=db(...).select()
return dict(rows=rows)
def event():
response.view='calendar/event.html'
row=db(db.EventList.id==request.args(0)).select(db.EventList.ALL).first()
return dict(row=row)
I
In a controller I have the following functions:
def eventList():
response.view='calendar/eventList.html'
rows=db(..).select(...)
if not rows:
response.flash=response.flash_noresult
return dict(rows=rows,alert=alert)
def event():
response.view='calendar/event.html'
2 matches
Mail list logo