colelloa / django-pagination

Automatically exported from code.google.com/p/django-pagination
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Should use request.REQUEST for accessing request's data, as of [8202]. #12

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Use Django after revision 8202

What is the expected output? What do you see instead?

  File "E:\Software\workspace\django-pagination\pagination\middleware.py",
line 8, in process_request
    request.page = int(request['page'])

TypeError: 'WSGIRequest' object is unsubscriptable

What version of the product are you using? On what operating system?
django-pagination r23

Please provide any additional information below.

Since [8202], to access data in GET or POST, you need to do
request.REQUEST['myvar'] instead of request['myvar']
http://code.djangoproject.com/changeset/8202

Patch attached.

Original issue reported on code.google.com by jpha...@gmail.com on 4 Aug 2008 at 12:16

Attachments:

GoogleCodeExporter commented 8 years ago
Fixed in trunk

Original comment by leidel on 5 Aug 2008 at 12:38