Piston subclass of HttpResponse fails with Django 1.5

Bug #1185012 reported by Gavin Panella
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Invalid
High
Unassigned
django-piston
New
Undecided
Unassigned
python-django-piston (Ubuntu)
Fix Released
Undecided
Andres Rodriguez

Bug Description

In piston/utils.py, HttpResponse is subclassed. Owing to a change in Django >= 1.5 this no longer works. The problem is explained at http://stackoverflow.com/questions/16294518/httpresponse-has-no-attribute-get-content and a solution has already been proposed at https://bitbucket.org/jespern/django-piston/pull-request/34/added-compatibility-with-django-v15-for/diff.

The referenced pull request ought to be merged into Piston, and the python-django-piston package needs to be updated with this fix. This affects MAAS, though no change is needed in MAAS.

Changed in python-django-piston (Ubuntu):
assignee: nobody → Andres Rodriguez (andreserl)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package python-django-piston - 0.2.3-1ubuntu3

---------------
python-django-piston (0.2.3-1ubuntu3) saucy; urgency=low

  * Compatibility with Django 1.5:
    - 04-json-compat-django1.5.patch: Use json instead of simplejson for
      Django 1.5. (LP: #1184219)
    - 05-compat-django1.5-httpresponsewrapper.patch: Compatibility with
      Django 1.5 for HttpResponseWrapper. (LP: #1185012)
 -- Andres Rodriguez <email address hidden> Tue, 28 May 2013 11:50:31 -0400

Changed in python-django-piston (Ubuntu):
status: New → Fix Released
Changed in maas:
status: Triaged → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.