Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 57236 invoked from network); 11 Dec 2009 13:21:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 11 Dec 2009 13:21:44 -0000 Received: (qmail 51744 invoked by uid 500); 11 Dec 2009 13:21:43 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 51703 invoked by uid 500); 11 Dec 2009 13:21:43 -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 51693 invoked by uid 99); 11 Dec 2009 13:21:43 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Dec 2009 13:21:43 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of matteo.caprari@gmail.com designates 74.125.78.24 as permitted sender) Received: from [74.125.78.24] (HELO ey-out-2122.google.com) (74.125.78.24) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Dec 2009 13:21:35 +0000 Received: by ey-out-2122.google.com with SMTP id d26so109445eyd.3 for ; Fri, 11 Dec 2009 05:21:15 -0800 (PST) MIME-Version: 1.0 Received: by 10.216.91.5 with SMTP id g5mr509742wef.168.1260537675192; Fri, 11 Dec 2009 05:21:15 -0800 (PST) In-Reply-To: <4B223386.3030805@gmail.com> References: <1bca98390912110348k1b6a91a5vfacb2f88d90789d5@mail.gmail.com> <4B223386.3030805@gmail.com> From: Matteo Caprari Date: Fri, 11 Dec 2009 13:20:55 +0000 Message-ID: <1bca98390912110520t2bb498asdc1e2ccc38d0ce6d@mail.gmail.com> Subject: Re: transform functions? To: user@couchdb.apache.org Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked by ClamAV on apache.org Thanks :) On Fri, Dec 11, 2009 at 11:56 AM, Patrick Barnes wrote: > http://wiki.apache.org/couchdb/How_to_intercept_document_updates_and_perform_additional_server-side_processing > > It's a fairly new feature, and isn't covered properly by the book yet. > Don't worry, I saw a post claiming that validate_doc_update could modify the > newDoc var (it can't), and wrote a fairly complex validation function > predicated on that before I realised otherwise. ^_^ > > -Pat > > Matteo Caprari wrote: >> >> Hi. >> >> I thought I once found some documentatation describing how to provide >> a transformation function >> that would change a document before storing it. >> >> I can't for the life of me remember where I found it and google is not >> helipng, either. >> >> Does this feature even exist? I'm just about to question my sanity... >> >> -teo >> > -- :Matteo Caprari matteo.caprari@gmail.com