#13409: "wrap" argument for django.conf.urls.defaults.url to decorate views more
easily
-------------------------------------+-------------------------------------
Reporter: yourcelf | Owner: nobody
Type: New | Status: new
feature | Component: Core (Other)
Milestone: | Severity: Normal
Version: SVN | Keywords: url,
Resolution: | RegexURLResolver, RegexURLPattern,
Triage Stage: Design | decorators
decision needed | Has patch: 1
Needs documentation: 1 | Needs tests: 1
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
Changes (by Semmel):
* cc: Florian.Sening@… (added)
* ui_ux: => 0
* easy: => 0
Comment:
I'm not sure if a wrap argument is the way to go but there really needs to
be an easy way to do this.
Currently I'm using Marty Alchin's CurrentUserMiddleware as a decorator -
effectively applying it to the whole admin. His original approach was to
use a small lambda wrapper function. Since admin.site.root was replaced by
admin.site.urls a different approach is needed.
Btw: I just added a version of the original patch that works with trunk.
--
Ticket URL: <https://code.djangoproject.com/ticket/13409#comment:6>
Django <https://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.