#2245: Params passed as None even if defined when mixing POST request with
urlencoded params
------------------------+---------------------------------------------------
Reporter: amol | Owner:
Type: defect | Status: new
Priority: normal | Milestone: 2.0rc1
Component: TurboGears | Version: 2.0b6
Severity: normal | Keywords: pylons
------------------------+---------------------------------------------------
I have prepared this simple app to replicate the problem. It uses
tw.jquery to load data inside a grid with an ajax request.
The grid method inside GridController creates the grid and sets fetchUrl
as url('/grid/grid_data', uri=uri) passing uri parameter as urlencoded.
When you go to the page (simply click 'GO TO THE GRID' in the index of the
example) the grid_data method is called to perform update of the grid. The
method has default parameters for everything and as you can see from the
POST request every requested parameter is inside the request itself. But
they are ignored, you can find the exception traceback in the logs.
Also it is possible to reproduce the problem by simply calling
http://localhost:8080/grid/grid_data?uri=test
Even if there are the default parameters you will get a TypeError: int()
argument must be a string or a number, not 'NoneType' as rq param is None
--
Ticket URL: <http://trac.turbogears.org/ticket/2245>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "TurboGears Tickets" group.
This group is read-only. No posting by normal members allowed.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/turbogears-tickets?hl=en?hl=en
-~----------~----~----~----~------~----~------~--~---