Check your urls, I'm sure there is a capturing parenthesis there. Remove it or deal with it.
"Now change your URL line to: '/(.*)', 'index' and change the definition of index.GET to: def GET(self, name):" -- http://webpy.org/tutorial2.en -- Yoan On Sun, Apr 13, 2008 at 9:33 PM, MilesTogoe <[EMAIL PROTECTED]> wrote: > > I'm trying to follow the .23 tutorial using sqlite (version 3.x on > unbuntu gutsy). I'm getting the following error - any help ? thks. > > # -- my code > web.config.db_parameters = dict(dbn='sqlite', db='mytest') > class account: > def GET(self): > accounts = web.select('accounts') > print render.account_listing(accounts) > > 127.0.0.1:45270 - - [13/Apr/2008 13:15:50] "HTTP/1.1 GET /" - 500 > Internal Server Error > Traceback (most recent call last): > File "/usr/lib/python2.5/site-packages/web/webapi.py", line 312, in > wsgifunc > result = func() > File "/usr/lib/python2.5/site-packages/web/request.py", line 129, in > <lambda> > func = lambda: handle(getattr(mod, name), mod) > File "/usr/lib/python2.5/site-packages/web/request.py", line 61, in handle > return tocall(*([x and urllib.unquote(x) for x in args] + fna)) > TypeError: GET() takes exactly 1 argument (2 given) > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web.py" 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/webpy?hl=en -~----------~----~----~----~------~----~------~--~---
