"gareth.doutch" <[EMAIL PROTECTED]> writes: > How do I create a validator that can check an input value against > currently stored values to ensure that duplicate entries do not occur? > I saw a discussion on this previously, but it went off the list.
You can use a validator, but I'd use a UNIQUE constraint on the database and catch the exception. It is easier and would require less code. You can then fill tg_errors with adequate values and let the widget system work showing the error messages as usual. -- Jorge Godoy <[EMAIL PROTECTED]> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears?hl=en -~----------~----~----~----~------~----~------~--~---

