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.
On Fri, 2010-11-05 at 22:23 +0000, Fergus Doyle wrote:
> 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
> On 4 Nov 2010, at 12:40, Wichert Akkerman wrote:
> > 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 multidict, so .getall() is not available.
> > Wichert.
> > _______________________________________________
> > Repoze-dev mailing list
> > Repozeemail@example.com
> > http://lists.repoze.org/listinfo/repoze-dev
> Repoze-dev mailing list
Repoze-dev mailing list