#13093: cache_page decorator doesn't work on callable classes
-----------------------------------+----------------------------------------
Reporter: russellm | Owner: nobody
Status: new | Milestone: 1.2
Component: Cache system | Version: 1.2-beta
Resolution: | Keywords:
Stage: Accepted | Has_patch: 0
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
-----------------------------------+----------------------------------------
Comment (by russellm):
It turns out that this is actually due to a
[http://bugs.python.org/issue3445 bug in Python itself]; functools.wraps
doesn't check to see if an attribute is available before copying it onto
the wrapped view. Luckily, the API for wraps includes a feature that can
be used as a workaround; a patch should be committed shortly.
--
Ticket URL: <http://code.djangoproject.com/ticket/13093#comment:3>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
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.