On Wed, May 26, 2010 at 8:26 AM, Guillaume Leprohon <[email protected]> wrote: >> Maybe a document update handler is what you're looking for? >> >> http://wiki.apache.org/couchdb/Document_Update_Handlers >> >> Nils. > > That's exactly what I was looking for. Thanks! > >
Keep in mind that there's nothing preventing the user from simply posting a document directly to the database, bypassing the document update handler. You'll want to have a validation function as well, to reject any documents that aren't valid: http://wiki.apache.org/couchdb/Document_Update_Validation -- Paul Bonser http://probablyprogramming.com
