[Grok-dev] FieldProperty

Tim Terlegård tim at se.linux.org
Mon Mar 12 03:28:17 EDT 2007

> Just wondering why FieldProperty is not used in the example apps
> (grokwiki and grokstar). Without it setting attributes is not validated
> - eg I can set myobj.title = 'Non unicode string' but when I use
> FieldProperty in the traditional manner then WrongType error is raised
> as I would expect.

Often you don't need FieldProperty because formlib does the validation
of forms for you. If you do lots of manual manipulations of attributes
you might want to use FieldProperty, but that's entirely up to you.
Python programmers have done well without type checking before :)


More information about the Grok-dev mailing list