Ordinarily, this would be in SQLObject mail list but it is for TG so if
I can work around SQLObject, that will work just as well.
I am working on enhancements to DataController. One of the things that
I would like to do is pass error detection parameters in from the
SQLObject class. My form would need more information from SQLobject.
For example, I don't want to accept years of birth <1900 or > 2005
class Author(SQLObject):
name = StringCol(length = 255)
description = StringCol()
_doc_description = "Volume knob"
print row.description.__doc__
I copied this directly from the SQLobject email list. It doesn't work.
I tried the obvious permutations of increasing and decreasing
underscores, etc. No dice.
Any way, ideally
class Author(SQLObject):
name = StringCol(length = 255)
description = StringCol( length = 255, form_min=10)
yearspublished = IntCol( form_min=1, form_max=10)
socialsecnumber = IntCol( form_mask='999-99-9999')
basically, have SQLobject pass through anything it does not understand
like XML attributes. Anyway of passing an array of parameters per
field would work.
Any suggestions?
Thanks
Alvin