Is there a way to validate a schema against a dict but by pass the
"missing value" error ? That is, I want to use a schema created from
the table definition but what I received from the web may not contains
all the fields in that schema.

Ian Bicking wrote:
>
> I think validation can be very UI-oriented, not just data/model
> oriented.  For instance, I use TEXT columns all the time, unless there's
> a concrete reason not to, because it is least likely to cause problems
> in the future.  And generally people have a tendency to restrict types
> and formats more than they have to.  I guess it's because databases are
> often content repositories, and when they are they should be treated as
> such.
>
> But I digress.  When validation is UI, putting validation into the
> view/template starts making more sense.  I think this is a good
> justification of Subway's inclination to use htmlfill_schemabuilder.  In
> a practical sense, when I'm collaborating with people at work, it's
> often the people who are involved with the view that are also most
> interested in the validation, but if it is in Python code it's largely
> inaccessible to them.
>
>
> --
> Ian Bicking  |  [EMAIL PROTECTED]  |  http://blog.ianbicking.org

Reply via email to