From: Conan C. A. <co...@wa...> - 2006-01-10 02:50:39
|
There is a third option with my session2.py module -- put the string =20 in the user's session. Then access it again from the new page: 1st page: session2['info'] =3D 'my message' redirect.internal('pageB') 2nd page: print session2['info'] ____________________________________ Conan C. Albrecht, Ph.D. Information Systems Department Brigham Young University Web: http://warp.byu.edu/ Email: co...@wa... What's the smime.p7s attachment? Just ignore it. It is meant for =20 your email reader and not you (it's a digital signature that 1) =20 authenticates that this email and 2) allows you to send me encrypted =20 mail: http://en.wikipedia.org/wiki/S/MIME). On Jan 9, 2006, at Mon, Jan 9, 2006 5:32 PM, John Reese wrote: > I have this spyce page (pageA) which in some situations wants to > display a different spyce page (pageB). In particular, if the user > requests pageA and isn't logged in (which can be figured out by > looking at a cookie), I want to display pageB, which has the whole > "login or register as a new user" rigamarole. > > In the process of figuring out that the user needs to log in, pageA > will have collected certain data -- say a string called message, which > might contain something like "Your username and password do not match" > or "Your cookie has expired and you've been logged out... for your own > good!" or something. > > So it seems like I have two options: > > redirect.internal('pageB') > # no way to pass message, but pageB's parent template is respected > > include.spyce('pageB', context=3Dmessage) > raise spyceDone > # passed message, but pageB's parent template is not respected > > Is this some option that allows me to pass in message and also have > pageB's parent template executed? > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through =20 > log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD =20 > SPLUNK! > http://ads.osdn.com/?ad_idv37&alloc_id=16865&op=3Dclick > _______________________________________________ > Spyce-users mailing list > Spy...@li... > https://lists.sourceforge.net/lists/listinfo/spyce-users |