def artikels(query = None):
db = current.db
if not query:
query = db.akb_articles.id > 0
links = [lambda row: A(T('show article'), _href = URL(r = request, c = 'default',
f = 'show_akb_article',
args = row.id
))]
fields = [db.akb_articles.title, db.akb_articles.primaryauthor,
db.akb_articles.authors,
db.akb_articles.journal, db.akb_articles.pubyear, db.akb_articles.url]
form = SQLFORM.grid(query,
fields = fields,
orderby = db.akb_articles.title,
maxtextlength = 90,
editable = False, deletable = False,
details = False,
searchable = False,
links = links,
ui = 'jquery-ui')
return formThere is no "r" parameter for URL. Not sure what you are trying to pass. You already specify the controller and function.
So there is. That is handy. Not mentioned in the book!