Task #149
closed
Create 1.4 compatible HttpResponseRedirect object that allows the body to be set.
Status:
CLOSED - CURRENTRELEASE
Description
A handful of Pulp URLs want to return redirect objects and also set the body contents in that redirect. This is not possible in Django 1.4. This is further complicated because newer versions of Django have made some backwards incompatible changes in this area making it difficult to create one object that will provide this functionality in multiple version of Django. The easiest thing to do is to backport a compat version of the 1.5+ HttpResponseRedirect behaviors so that it can be used by Django 1.4. It won't be very difficult, but it needs to be done.
This will block a handful of URLs until this helper object can be made.
- Priority changed from Normal to High
- Tags Sprint Candidate added
- Status changed from NEW to ASSIGNED
- Assignee set to ipanova@redhat.com
- Sprint/Milestone set to 12
- Tags deleted (
Sprint Candidate)
On my RHEL 6 dev box, I seem to have a Django 1.4 and 1.5 available, both from EPEL with frustratingly different naming schemes:
(pulp)[rbarlow@grapefruit pulp]$ sudo yum info Django14
Loaded plugins: product-id, pulp-profile-update, refresh-packagekit, subscription-manager
Available Packages
Name : Django14
Arch : noarch
Version : 1.4.18
Release : 1.el6
Size : 4.3 M
Repo : epel
Summary : A high-level Python Web framework
URL : http://www.djangoproject.com/
License : BSD
Description : Django is a high-level Python Web framework that encourages rapid
: development and a clean, pragmatic design. It focuses on automating as
: much as possible and adhering to the DRY (Don't Repeat Yourself)
: principle.
(pulp)[rbarlow@grapefruit pulp]$ sudo yum info python-django15
Loaded plugins: product-id, pulp-profile-update, refresh-packagekit, subscription-manager
Available Packages
Name : python-django15
Arch : noarch
Version : 1.5.6
Release : 1.el6
Size : 4.6 M
Repo : epel
Summary : A high-level Python Web framework
URL : http://www.djangoproject.com/
License : BSD
Description : Django is a high-level Python Web framework that encourages rapid
: development and a clean, pragmatic design. It focuses on automating as
: much as possible and adhering to the DRY (Don't Repeat Yourself)
: principle.
Does this mean we don't have to worry about this task?
Nevermind, bmbouter set me straight on IRC. Looks like the python-django15 doesn't let you import it as "django". ☹
- Status changed from ASSIGNED to MODIFIED
- % Done changed from 0 to 100
- Status changed from MODIFIED to 7
- Status changed from 7 to 6
Since this isn't in a release, I don't think we should mark it as closed.
- Status changed from 6 to CLOSED - CURRENTRELEASE
- Sprint set to February 2015
- Sprint/Milestone deleted (
12)
Also available in: Atom
PDF