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 75425F6D9 for ; Sat, 1 Jun 2013 01:14:02 +0000 (UTC) Received: (qmail 7751 invoked by uid 500); 1 Jun 2013 01:14:01 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 7722 invoked by uid 500); 1 Jun 2013 01:14:00 -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 7714 invoked by uid 99); 1 Jun 2013 01:14:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 01 Jun 2013 01:14:00 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of snbartell@gmail.com designates 209.85.215.43 as permitted sender) Received: from [209.85.215.43] (HELO mail-la0-f43.google.com) (209.85.215.43) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 01 Jun 2013 01:13:55 +0000 Received: by mail-la0-f43.google.com with SMTP id fe20so445365lab.30 for ; Fri, 31 May 2013 18:13:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:subject:message-id:date:to:mime-version:x-mailer; bh=0kPfph8UHDyuw7GhLmjKX+8Ga8l32UdAp9C5KUMP3tc=; b=AggH2EDt1gILC6P4w484YYdGJTLY0AHckOlze3Bh+oxqn8xTGge4pohq3u6ZRPh97R 2kgQCGsFXtmj3czGHpQVfSREqsQHYtbwvAeeuUf7q/VHw1QyVhUda3FBsmKwNSljgbnT mFEbqylKxBnZwLfhXyBqIez+9l4Nu5/TFznJ4hrBiXvmAl+BkrR8zJPNZk7h4BQHaTWv BFFKo7GEiKSz9jfFgNyoYNdXJetHVVcE4jqyciS75hyuiPXFoqaxPwFLhcCqpUVUPYjU 5vjt5YUPsytWVT03y0s7mjD+oEYmetwYFyY/H3ZUWYESYDOPgxQcWDvfWBqG7N5SxfXF pEVg== X-Received: by 10.112.159.136 with SMTP id xc8mr6831050lbb.57.1370049214217; Fri, 31 May 2013 18:13:34 -0700 (PDT) Received: from [10.69.41.36] (static-108-23-87-130.lsanca.fios.verizon.net. [108.23.87.130]) by mx.google.com with ESMTPSA id rr7sm14723816lbb.0.2013.05.31.18.13.33 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 31 May 2013 18:13:33 -0700 (PDT) From: Stephen Bartell Content-Type: multipart/alternative; boundary="Apple-Mail=_A0F42D6C-C5DF-4572-BF3D-6036F5ECD873" Subject: commonjs in validation docs Message-Id: Date: Fri, 31 May 2013 18:13:30 -0700 To: "user@couchdb.apache.org" Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) X-Mailer: Apple Mail (2.1503) X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail=_A0F42D6C-C5DF-4572-BF3D-6036F5ECD873 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Hi all! Can I use cjs modules in validate_doc_update functions? I had a look through the docs at = http://couchdb.readthedocs.org/en/latest/query-servers.html#commonjs-modul= es and it seems to suggest that I can have a validate_doc_update = function inside a view field. I tried this and the validation doesn't = seem to run. Is this supposed to work? Thanks!= --Apple-Mail=_A0F42D6C-C5DF-4572-BF3D-6036F5ECD873--