Re: [Zopexmlmethods-devel] Override variable definitions via query string?
Brought to you by:
arielpartners,
philikon
|
From: Philipp v. W. <ph...@we...> - 2003-05-19 22:01:17
|
Brent Hendricks wrote: > Philipp von Weitershausen wrote: > >> As mentioned above, you'd really like to pass a parameters as a >> keyword argument to __call__, wouldn't you? >> Why not make __call__ accept arbitrary keyword arguments (**kw)? Also, > > > +1, as long as REQUEST parameters are still allowed to override them. My > suggestion to implement this would be to do: > > kw.update(REQUEST.form) Please correct me if I'm wrong but I don't think REQUEST.form is quite enough because it only contains form values. We'd need at least REQUEST.other, but looking at the (quite ugly) code of HTTPRequest, I'd say: .form .cookies .environ .other Any objections? Phil |