From: Ian Bicking <ianb@co...> - 2005-02-01 19:56:37
Peter Hunt wrote:
> Hi, I'm thinking about adding a layer to Subway's SQLObject
> integration, and I thought I would consult you too.
> It would be nice if one was able to dynamically add constraints in a
> _fromDatabase class columns. For example:
> class MyObject(SQLObject):
> _fromDatabase = True
> myColumnName_constraints = [MyConstraint()]
> Is this in the works? If not, how could I go about doing such a thing?
I am extending column objects, so it might look like:
_fromDatabase = True
constraints = [MyConstraint()]
Right now constraints aren't really fleshed out, so I'm not 100% sure
what you had in mind -- database or application constraints?
Ian Bicking / ianb@... / http://blog.ianbicking.org
Get latest updates about Open Source Projects, Conferences and News.