alfonsodg / demo-web2py

Apache License 2.0
0 stars 0 forks source link

session.flash does not work with GAE, but otherwise works (fixed in trunk 261) #9

Closed alfonsodg closed 10 years ago

alfonsodg commented 10 years ago

From robi...@gmail.com on June 14, 2008 22:25:32

What steps will reproduce the problem? from gluon.contrib.gql import * db = GQLDB() session.connect(request,response,db=db)

def index(): session.flash=T('Welcome to web2py') redirect(URL(r=request,f='show'))

def show(): return dict(session=session) What is the expected output? What do you see instead? The string appears in session, so sessions work, but response.flash does not receive session.flash after the redirect and the string remains in the session. What version of the product are you using? On what operating system? r259 Please provide any additional information below. If I comment out the 3 lines:

from gluon.contrib.gql import *

db = GQLDB()

session.connect(request,response,db=db)

Then the example works, but its not using GAE

Original issue: http://code.google.com/p/web2py/issues/detail?id=9

alfonsodg commented 10 years ago

From massimod...@gmail.com on June 16, 2008 09:05:20

Fixed

Summary: session.flash does not work with GAE, but otherwise works (fixed in trunk 261)
Status: Fixed