Re: [SQLObject] Custom Validator (unique-ness)
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Sidnei da S. <si...@pl...> - 2003-09-09 02:24:42
|
On Mon, Sep 08, 2003 at 08:27:09PM -0500, Ian Bicking wrote: | Unique is hard, because you can't test it in isolation. You'd have to | look at all the other rows, whether they are in memory or not. It | seems like the database would do this best. | | Anyway, I don't think this is the best place for a validator, it's | really best done in the database. Is there a problem there? | | Also, Validators.py is really part of another piece of (as-yet | unreleased) software I'm writing, and include/Validators.py is (and | will continue to be) a direct copy of that. I'm not sure where the | best place for a SQLObject-specific validator is. Thanks for the answer. I've ended up creating the validator as a field constraint (it was for my zope3-integration project). []'s -- Sidnei da Silva <si...@pl...> dreamcatching :: making your dreams come true http://dreamcatcher.homeunix.org It's ten o'clock; do you know where your processes are? |