Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 16343 invoked from network); 17 Jul 2009 12:51:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 17 Jul 2009 12:51:10 -0000 Received: (qmail 40288 invoked by uid 500); 17 Jul 2009 12:52:15 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 40232 invoked by uid 500); 17 Jul 2009 12:52:15 -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 40222 invoked by uid 99); 17 Jul 2009 12:52:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Jul 2009 12:52:14 +0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [91.198.169.17] (HELO webmail-out2.b-one.net) (91.198.169.17) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Jul 2009 12:52:05 +0000 Received: from bmail00.one.com (bmail00.one.com [91.198.169.176]) by webmail-out2.b-one.net (Postfix) with ESMTP id EB25320403CAD for ; Fri, 17 Jul 2009 14:51:42 +0200 (CEST) Received: by bmail00.one.com (Postfix, from userid 33) id E6A433000204; Fri, 17 Jul 2009 14:51:42 +0200 (CEST) MIME-Version: 1.0 From: maillist@ol-mars.se To: user@couchdb.apache.org Subject: Dynamic permanent views Date: Fri, 17 Jul 2009 14:51:42 +0200 X-Mailer: One.com webmail X-Sender: maillist@ol-mars.se Content-Type: multipart/alternative; boundary="----------=_1247835102-18091-0" Message-Id: <20090717125142.E6A433000204@bmail00.one.com> X-Virus-Checked: Checked by ClamAV on apache.org ------------=_1247835102-18091-0 Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 I'm trying to write a view that enables me to extract data from my couch depending on what variables I'm passing to it. Here is an example of what an entry in the db might look like: { "@type": "LocationHelperTest", "_id": "cad119d5abf74997a1dac4ca8ca6b266", "_rev": "2526720230", "name": "Test", "what": { "@new": 1, "@old": null, "@resource_id": "21716c48bc8211a522f0ac684acb1ea8" }, "when": { "@recieved": "2009-07-17T07:08:04.765000" }, "who": { "user_id": "user" }, "why": { "new_state": "new state", "old_state": "old state", "reason": "A random reason" } } As you can see, I have a field, @resource_id, in the "what" dict. This is the same as the ID for another entry in the db that is called LocationTest. I'm using Pylons to write my system, and through the URL I get the ID. With this ID I want to find all LocationHelperTests with the @resource_id that matches this ID. How do I do this with views? (Or any other way if there is any). I'm not interested in temporary views, but wants a permanten view. ------------=_1247835102-18091-0--