From: Johannes Dollinger <johannes.dollin...@einfallsreich.net>
Date: Thu, 24 Sep 2009 22:28:59 +0200
Local: Thurs, Sep 24 2009 4:28 pm
Subject: Re: Adding signing (and signed cookies) to Django core
How about Signer class?
signer = Signer(key=...) This way you wouldn't have to pass around key, extra_key, and sig = TimestampedSignatureFactory(ttl=3600) # sig.unsign() will raise > 1) request.unsign_cookie('foo') -- This breaks the parallelism with 4) A signed.Cookies object: > existing cookies. Sometimes we'll be doing request.COOKIES['foo'] and > sometimes we'll be doing request.unsign_cookie('foo'). > 2) A decorator for views -- @unsign_cookies("foo", "bar") -- This > 3) COOKIES as an intelligent object -- We can overload .get so we're signed_cookies = signed.Cookies(request, key=...) or signed_cookies = signer.get_cookies(request) __ 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.
| ||||||||||||||