Re: [Repoze-dev] DummyRequest breaks GET/POST API

2010-11-05 Thread Chris McDonough
I suppose my issue with adding getall to the thing: if getall needs to behave like it does in a normal webob request and multiple values for each key need to be kept around, you might as well just use a normal one. Or, as Fergus did, subclass. - C On Fri, 2010-11-05 at 22:23 +, Fergus Doyle

Re: [Repoze-dev] DummyRequest breaks GET/POST API

2010-11-05 Thread Fergus Doyle
I ended up subclassing DummyRequest to add the functionality where i needed it (I had a number of other aspects to add to the class due to the app setup, so it wasn't too painful) I suppose it can't be a bad thing to resemble webob.Request as closely as possible? On 4 Nov 2010, at 12:40, Wiche

[Repoze-dev] DummyRequest breaks GET/POST API

2010-11-04 Thread Wichert Akkerman
Since the issue tracker on bfg.repoze.org is still broken I'm posting this here. I ran into a little problem today: I was adding some tests for a function which uses request.POST.getall(), but it turns out that repoze.bfg.testing.DummyRequest uses a plain dict for POST instead of a WebOb multi