Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 51F6C17B42 for ; Fri, 26 Sep 2014 08:57:49 +0000 (UTC) Received: (qmail 22164 invoked by uid 500); 26 Sep 2014 08:57:47 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 22103 invoked by uid 500); 26 Sep 2014 08:57:47 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 22091 invoked by uid 99); 26 Sep 2014 08:57:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Sep 2014 08:57:46 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of conormacaoidh@gmail.com designates 74.125.82.174 as permitted sender) Received: from [74.125.82.174] (HELO mail-we0-f174.google.com) (74.125.82.174) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Sep 2014 08:57:19 +0000 Received: by mail-we0-f174.google.com with SMTP id w62so8763596wes.5 for ; Fri, 26 Sep 2014 01:57:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=EubORrDA3pdGns6CqTHRARPB4jW1zrDwSAGKD4U9nfI=; b=XHwWeAXe8YUG9N5qy+S0fLt1ToCMSJLSeKv58yXFwvKBaAeDmD1hMNZvC2lnOeZyiZ txDSzw6H6jxQjZg1kx9XQVnL9DFQSik4mRROqaw7F9E9TvDvJl1XjPpxQTNRAKMN7mGg snEkV7u+VvaSUy/BvxsdJoLv8aYh8zsr3lttDW2Brdu+qJUuPJcuNnYXa7BDsfPTVSH7 r69kHiprEbGMJq2glXskHeupd+OhQpAxri8cLcjF+GoA8wajGGG6AEwrYqotVvjZCaS7 bNkgIVXNYls1b0DgbbFcbiLYKk/sGmuuBEOTo7dvLnHhiBl2K+LSGMOkmc64EaL8wDBU YgKw== X-Received: by 10.180.36.244 with SMTP id t20mr44331466wij.73.1411721838778; Fri, 26 Sep 2014 01:57:18 -0700 (PDT) Received: from localhost.localdomain ([193.1.208.123]) by mx.google.com with ESMTPSA id pc6sm5349736wjb.43.2014.09.26.01.57.17 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 26 Sep 2014 01:57:17 -0700 (PDT) Message-ID: <54252A6C.5050404@gmail.com> Date: Fri, 26 Sep 2014 09:57:16 +0100 From: Conor Mac Aoidh User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.7.0 MIME-Version: 1.0 To: user@couchdb.apache.org Subject: Post Insert Validation Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi All, I was previously using the validate_doc_update function for document validation. However, now I need to be able to change the contents of a document if it is invalid. I was wondering what the best way to go about this is? Is there any design function that executes after a document insert and that will allow me to edit the document contents. I understand this will result in an additional revision. Thanks Conor