I don't think he needs to return it to the view if in the view he is calling session.counter, but yes if he call the counter like this :
{{=counter}} counter has to be pass by the function to the view. Richard On Tue, May 15, 2012 at 9:53 AM, Ivica Kralj <ivicakr...@gmail.com> wrote: > > 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 >> >> >