Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 41822 invoked from network); 21 Feb 2010 17:34:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 21 Feb 2010 17:34:34 -0000 Received: (qmail 6310 invoked by uid 500); 21 Feb 2010 17:34:32 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 6231 invoked by uid 500); 21 Feb 2010 17:34:32 -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 6221 invoked by uid 99); 21 Feb 2010 17:34:32 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 21 Feb 2010 17:34:32 +0000 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=RCVD_IN_BL_SPAMCOP_NET,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [217.110.7.51] (HELO mail.sourcegarden.de) (217.110.7.51) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 21 Feb 2010 17:34:21 +0000 Received: from [10.148.234.83] (tmo-105-163.customers.d1-online.com [80.187.105.163]) by mail.sourcegarden.de (Postfix) with ESMTP id 3F1A01F76A9 for ; Sun, 21 Feb 2010 18:33:50 +0100 (CET) Message-Id: From: Mario Scheliga To: user@couchdb.apache.org In-Reply-To: <161EBC1F-4F09-4C2A-A5C2-B67648323024@gmail.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v936) Subject: Re: available JavaScript Functions in View Date: Sun, 21 Feb 2010 18:33:48 +0100 References: <4CB46BED-131B-4EF5-8913-667D37D5CA7C@sourcegarden.de> <161EBC1F-4F09-4C2A-A5C2-B67648323024@gmail.com> X-Mailer: Apple Mail (2.936) X-rccsoftware-MailScanner-Information: Please contact the ISP for more information X-rccsoftware-MailScanner-ID: 3F1A01F76A9.ADB11 X-rccsoftware-MailScanner: Found to be clean X-rccsoftware-MailScanner-SpamCheck: not spam, SpamAssassin (nicht zwischen gespeichert, Wertung=3.918, benoetigt 6, BAYES_00 -2.60, RCVD_IN_BL_SPAMCOP_NET 1.96, RCVD_IN_PBL 0.91, RCVD_IN_SORBS_WEB 0.62, RCVD_IN_XBL 3.03) X-rccsoftware-MailScanner-SpamScore: sss X-rccsoftware-MailScanner-From: mario@sourcegarden.de X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No hi chris, i just saw this, was the first place i've looked. But in your presenation i saw this code: function(doc) { var pathToShop = ["planet", "country", "state", "county", "city", "street"].map(function(field) { return doc[field]; }); emit(pathToShop, doc.shop); }; and in a security tutorial from JDavis appears that sha1 stuff: "The final step is to create a special _design/_auth design document containing a users view mapping usernames to {password_sha: base64(sha1(password)), salt: , roles: [, ...]} and a secret member." so i am confused. where are the javascript functions implemented, grepping around the code always get me in wrong direction :-) thx alot for your time mario Am 21.02.2010 um 18:24 schrieb J Chris Anderson: > > On Feb 21, 2010, at 12:14 PM, Mario Scheliga wrote: > >> Hi folks, >> >> i can't stop asking. which javascript functions are available in >> map, reduce, show, list and update functions? >> >> I suggest there are jquery-functions also then the sha1-function >> available. (saw them in tuts). Is that right that >> all javascript includes in the share/www/scripts -directory is to >> my hand? > > no, pretty much all that is available in the query server sandbox > (aside from code you inline into your functions yourself) is what is > added to it here: > > http://github.com/apache/couchdb/blob/trunk/share/server/loop.js#L15 > >> >> thx alot >> mario >> >> >> -- >> Sourcegarden GmbH HR: B-104357 >> Steuernummer: 37/167/21214 USt-ID: DE814784953 >> Geschaeftsfuehrer: Mario Scheliga, Rene Otto >> Bank: Deutsche Bank, BLZ: 10070024, KTO: 0810929 >> Schoenhauser Allee 51, 10437 Berlin >> > -- Sourcegarden GmbH HR: B-104357 Steuernummer: 37/167/21214 USt-ID: DE814784953 Geschaeftsfuehrer: Mario Scheliga, Rene Otto Bank: Deutsche Bank, BLZ: 10070024, KTO: 0810929 Schoenhauser Allee 51, 10437 Berlin