I am trying to implement the audit trail from web2pyslices:

def wiki():
    """ this controller returns a dictionary rendered by the view it
    lists all wiki pages >>> index().has_key('pages') True
    """
    pages = db(db.page.active==True,db.page.category ==
db.category.id).select(db.page.id, db.page.title,db.category.name,
                        orderby=(db.category.name|db.page.title))
    return dict(pages=pages)1.

But this ends in a ticket:
        

Traceback (most recent call last):
  File "/home/js/web2py/gluon/restricted.py", line 184, in restricted
    exec ccode in environment
  File "/home/js/web2py/applications/pikkewyne/controllers/default.py",
line 259, in <module>
  File "/home/js/web2py/gluon/globals.py", line 103, in <lambda>
    self._caller = lambda f: f()
  File "/home/js/web2py/applications/pikkewyne/controllers/default.py",
line 80, in wiki
    pages = db(db.page.active==True,db.page.category ==
db.category.id).select(db.page.id, db.page.title,db.category.name,
TypeError: __call__() takes at most 2 arguments (3 given)

What have I done wrong?

Regards
Johann

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.


Reply via email to