From: Andrew Gwozdziewycz <apg...@gmail.com>
Date: Fri, 25 Sep 2009 07:31:27 -0400
Local: Fri, Sep 25 2009 7:31 am
Subject: Re: Adding signing (and signed cookies) to Django core
On 9/24/09 9:56 PM, Ian Lewis wrote:
> On Fri, Sep 25, 2009 at 6:33 AM, Chris Beaven<smileych...@gmail.com> wrote: Use a decorator or something that marks the cookies that should be in >> +1 on the concept of a signing module. >> On Sep 25, 7:48 am, Marty Alchin<gulop...@gmail.com> wrote: >>> The one downside to using get() directly, as opposed to an altogether >> Adding my coat of paint to the shed... >> Rather than a "request.unsign_cookie" method, provide a >> For example: >> # raises KeyError >> # value == None >> Personally, I don't see much point in specifically reporting on > The problem is that you don't know which cookies are signed and which SIGNED_COOKIES. I'm not a huge fan of request.SIGNED_COOKIES. I'd rather see them all in @expects_signed_cookies('username') Alternatively, is it stupid to think that the number of signed cookies SIGNED_COOKIES = ['username'] You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||