From: Chris Beaven <smileych...@gmail.com>
Date: Thu, 24 Sep 2009 14:33:52 -0700 (PDT)
Local: Thurs, Sep 24 2009 5:33 pm
Subject: Re: Adding signing (and signed cookies) to Django core
+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...
> new method, is that get() doesn't raise a KeyError when a value > doesn't exist. That means if anyone's wrapping request.COOKIES[key] in > a try block and catching KeyError, changing to the new code is more > than just a one-liner. 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
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.
| ||||||||||||||