Google Groups Home
Help | Sign in
delete bug in caching.py?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
JC  
View profile
 More options Feb 25, 8:29 am
From: JC <chantz...@gmail.com>
Date: Mon, 25 Feb 2008 05:29:17 -0800 (PST)
Local: Mon, Feb 25 2008 8:29 am
Subject: delete bug in caching.py?
In caching.py, at line 86, should:

    def delete(self):
        self.cache.pop(self.key)

be:

    def delete(self):
        self.cache.pop(self.key, None)

instead? Otherwise, delete() throws a KeyError if the key doesn't
exist, for example, at line 121:

    if request.method in invalid_methods:
        cherrypy._cache.delete()

Jeff


    Reply to author    Forward  
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.
Sylvain Hellegouarch  
View profile
 More options Feb 25, 12:29 pm
From: Sylvain Hellegouarch <s...@defuze.org>
Date: Mon, 25 Feb 2008 17:29:40 +0000
Local: Mon, Feb 25 2008 12:29 pm
Subject: Re: [cherrypy-devel] delete bug in caching.py?
You're looking for the following ticket:
http://www.cherrypy.org/ticket/714

It seems it had been fixed but maybe not in your version of CP.

- Sylvain

JC a écrit :


    Reply to author    Forward  
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.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google