Issue #93 new

piston.handler.update handling POST data?

created an issue


We're having a problem with the automatic update handler for a resource using piston. After a bit of digging I saw that the piston.handler.BaseHandler.update() method was using the request.POST data when it is dealing with a PUT request. Is this correct behaviour? I ran some tests and the request.POST dict was always empty while the collection had valid entries.

If I replace this line in the update() method: (line 129 in {{{

!attrs = self.flatten_dict(request.POST)

}}} with this code: {{{

!attrs = self.flatten_dict(

}}} Everything works as (I) expected.

Is this an issue, or WOI?

Best regards Hogni

Comments (0)

  1. Log in to comment