Re: Opinions requested about validating edit_inline fields

2006-04-28 Thread Malcolm Tredinnick
On Fri, 2006-04-28 at 13:52 +, Jason Davies wrote: > > Malcolm Tredinnick wrote: > > On Thu, 2006-04-27 at 09:19 -0700, Jason Davies wrote: [...] > > > How about passing an optional name_prefix parameter to these > > > validators, which would allow them to look up things like > > > all_data[n

Re: Opinions requested about validating edit_inline fields

2006-04-28 Thread Jason Davies
Malcolm Tredinnick wrote: > On Thu, 2006-04-27 at 09:19 -0700, Jason Davies wrote: > > > > > A solution that fits all needs would be to create an extra parameter for > > > these validators (the ones that take field names) that indicates that > > > only fields for this class should be considered (

Re: Opinions requested about validating edit_inline fields

2006-04-27 Thread Malcolm Tredinnick
On Thu, 2006-04-27 at 09:19 -0700, Jason Davies wrote: > > > A solution that fits all needs would be to create an extra parameter for > > these validators (the ones that take field names) that indicates that > > only fields for this class should be considered (e.g. only things that > > start with

Re: Opinions requested about validating edit_inline fields

2006-04-27 Thread Jason Davies
> A solution that fits all needs would be to create an extra parameter for > these validators (the ones that take field names) that indicates that > only fields for this class should be considered (e.g. only things that > start with model.__name__, in effect) and the dotted bits > ("model.positio

Opinions requested about validating edit_inline fields

2006-04-27 Thread Malcolm Tredinnick
All, I was doing a slightly chaotic wander through the open tickets this evening and came across http://code.djangoproject.com/ticket/1690 -- discussing validators and fields with edit_inline set. Initially I thought that the reporter had a good point and now I'm not so sure that the "right" ans