Author: jacob
Date: 2007-01-12 09:16:55 -0600 (Fri, 12 Jan 2007)
New Revision: 4308
Modified:
django/trunk/django/core/cache/backends/dummy.py
Log:
Fixed #3290: DummyCache now conforms to the BaseCache interface correctly.
Thanks, Ned Batchelder.
Modified: django/trunk/django/core/cache/backends/dummy.py
===================================================================
--- django/trunk/django/core/cache/backends/dummy.py 2007-01-12 15:15:05 UTC
(rev 4307)
+++ django/trunk/django/core/cache/backends/dummy.py 2007-01-12 15:16:55 UTC
(rev 4308)
@@ -6,8 +6,8 @@
def __init__(self, *args, **kwargs):
pass
- def get(self, *args, **kwargs):
- pass
+ def get(self, key, default=None):
+ return default
def set(self, *args, **kwargs):
pass
@@ -16,7 +16,7 @@
pass
def get_many(self, *args, **kwargs):
- pass
+ return {}
def has_key(self, *args, **kwargs):
return False
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---