I think you are missing a variable name for session.counter in return.

e.g.

return dict(message="Hello", counter=session.counter)









On 15 May 2012 13:56, Gerald Klein <jk121...@gmail.com> wrote:

> I am working through the tutorial on the web2py site, checking web2py out
> and I keep getting errors for things I can't see. Like
>
> type 'exceptions.SyntaxError'> non-keyword arg after keyword arg
> (default.py, line 14)
> That code does not exist on the page. The prior code is:
> *def index():**    session.counter = (session.counter or 0) + 1* *
> return dict(message="hello", session.counter)*
>
>
> the last line is line 14?
>
> Does anyone have an idea of what this is?
>
> thanks
>
> --jerry
>
>

Reply via email to