[Django] #22494: Can't use partials as views since 1.6.3 security update

14 views
Skip to first unread message

Django

unread,
Apr 23, 2014, 4:38:59 AM4/23/14
to django-...@googlegroups.com
#22494: Can't use partials as views since 1.6.3 security update
-----------------------------+------------------------
Reporter: pronik | Owner: nobody
Type: Bug | Status: new
Component: Core (URLs) | Version: 1.6
Severity: Normal | Keywords: regression
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------+------------------------
I have several views which are similar, but take different start values,
so I defined a function `def _view(value1, value2, request, param1,
param2)`, which gets partially applied to be used as several actual views:
`view1 = partial(_view, "value1", "value2")`. Now, with 1.6.3, partially
applied function is no longer a valid view, throwing an `AttributeError:
'functools.partial' object has no attribute '__module__'` in
`django/core/urlresolvers.py` in `_populate:272`.

--
Ticket URL: <https://code.djangoproject.com/ticket/22494>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Apr 23, 2014, 5:24:08 AM4/23/14
to django-...@googlegroups.com
#22494: Can't use partials as views since 1.6.3 security update
-----------------------------+--------------------------------------
Reporter: pronik | Owner: nobody
Type: Bug | Status: closed

Component: Core (URLs) | Version: 1.6
Severity: Normal | Resolution: duplicate

Keywords: regression | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-----------------------------+--------------------------------------
Changes (by claudep):

* status: new => closed
* needs_docs: => 0
* resolution: => duplicate
* needs_tests: => 0
* needs_better_patch: => 0


Comment:

Duplicate of #22486

--
Ticket URL: <https://code.djangoproject.com/ticket/22494#comment:1>

Reply all
Reply to author
Forward
0 new messages