[Paste] Is there a get() in MultiDict?

2008-06-22 Thread limodou
I've used webob in my project uliweb, and I think it's wonderful. When I was using it, I found there is no get() of MultiDict, so if I missed it? I implemented one myself, the code is simple: def get(self, key, default=None): for k, v in self._items: if key == k:

Re: [Paste] Is there a get() in MultiDict?

2008-06-22 Thread Ian Bicking
limodou wrote: > I've used webob in my project uliweb, and I think it's wonderful. > > When I was using it, I found there is no get() of MultiDict, so if I > missed it? > > I implemented one myself, the code is simple: > > def get(self, key, default=None): > for k, v in self._items:

Re: [Paste] Is there a get() in MultiDict?

2008-06-22 Thread limodou
On Mon, Jun 23, 2008 at 9:09 AM, Ian Bicking <[EMAIL PROTECTED]> wrote: > limodou wrote: > >> I've used webob in my project uliweb, and I think it's wonderful. >> >> When I was using it, I found there is no get() of MultiDict, so if I >> missed it? >> >> I implemented one myself, the code is simpl