Project

Profile

Help

Task #149

closed

Create 1.4 compatible HttpResponseRedirect object that allows the body to be set.

Added by bmbouter about 9 years ago. Updated about 5 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
High
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
% Done:

100%

Estimated time:
Platform Release:
Groomed:
Sprint Candidate:
Tags:
Pulp 2
Sprint:
February 2015
Quarter:

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.

Actions #1

Updated by bmbouter about 9 years ago

  • Priority changed from Normal to High
Actions #2

Updated by rbarlow about 9 years ago

  • Tags Sprint Candidate added
Actions #3

Updated by ipanova@redhat.com about 9 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to ipanova@redhat.com
Actions #4

Updated by mhrivnak about 9 years ago

  • Sprint/Milestone set to 12
Actions #5

Updated by rbarlow about 9 years ago

  • 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?

Actions #6

Updated by rbarlow about 9 years ago

Nevermind, bmbouter set me straight on IRC. Looks like the python-django15 doesn't let you import it as "django". ☹

Actions #7

Updated by ipanova@redhat.com about 9 years ago

  • Status changed from ASSIGNED to MODIFIED
  • % Done changed from 0 to 100
Actions #8

Updated by ipanova@redhat.com about 9 years ago

  • Status changed from MODIFIED to 7
Actions #9

Updated by rbarlow about 9 years ago

  • Status changed from 7 to 6

Since this isn't in a release, I don't think we should mark it as closed.

Actions #10

Updated by dkliban@redhat.com over 8 years ago

  • Status changed from 6 to CLOSED - CURRENTRELEASE
Actions #12

Updated by bmbouter about 6 years ago

  • Sprint set to February 2015
Actions #13

Updated by bmbouter about 6 years ago

  • Sprint/Milestone deleted (12)
Actions #14

Updated by bmbouter about 5 years ago

  • Tags Pulp 2 added

Also available in: Atom PDF