I discovered that my 'Account' model happily created multiple instances of user 't...@example.com' without complaint during testing. (I know, fix my code).
Short question: What's the lightest way of ensuring value uniqueness between entity values? I've read up on the Property class constructor argument "validator" and got to wondering if there is a RoR-like library of prefab validators. It would be great if I could do something like this: from google.appengine.ext import validation class Account(db.Model): user = db.UserProperty(required=True, validator=validation.unique(db.UserProperty) ) ... related resources: http://code.google.com/appengine/docs/python/datastore/propertyclass.html http://googleappengine.blogspot.com/2009/07/writing-custom-property-classes.html --Daniel Rhoden --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~----------~----~----~----~------~----~------~--~---