Re: redirect.internal with parameters?
"Conan C. Albrecht" <conan-RXmsyT/Szrj2fBVCVOL8/[email protected]>
| Newsgroups | gmane.comp.python.spyce.general |
|---|---|
| Message-ID | <[email protected]> |
There is a third option with my session2.py module -- put the string
in the user's session. Then access it again from the new page:
1st page:
session2['info'] = '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: conan-RXmsyT/Szrj2fBVCVOL8/[email protected]
What's the smime.p7s attachment? Just ignore it. It is meant for
your email reader and not you (it's a digital signature that 1)
authenticates that this email and 2) allows you to send me encrypted
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=message)
> 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
> log files
> for problems? Stop! Download the new AJAX search engine that makes
> searching your log files as easy as surfing the web. DOWNLOAD
> SPLUNK!
> http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
> _______________________________________________
> Spyce-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/spyce-users
smime.p7s
(application/pkcs7-signature, 2.3 KB) - not displayed