Il 15/05/2012 14:56, Gerald Klein ha scritto:


                *def index():*


                *    session.counter = (session.counter or 0) + 1*


                *    return dict(message="hello", session.counter)*

the right code for building a dictionary is the one suggested by Richard, in your case:

dict(message='hello', counter=session.counter)

anyway the session is available from the view so you can call

{{=session.couner}}

and you don't need to define the counter inside the dictionary returned by controller

cheers

    M.

Reply via email to