Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 74547 invoked from network); 12 Feb 2011 20:21:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 12 Feb 2011 20:21:55 -0000 Received: (qmail 9262 invoked by uid 500); 12 Feb 2011 20:21:53 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 9101 invoked by uid 500); 12 Feb 2011 20:21:52 -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 9093 invoked by uid 99); 12 Feb 2011 20:21:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 12 Feb 2011 20:21:52 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of bchesneau@gmail.com designates 209.85.214.180 as permitted sender) Received: from [209.85.214.180] (HELO mail-iw0-f180.google.com) (209.85.214.180) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 12 Feb 2011 20:21:46 +0000 Received: by iwn37 with SMTP id 37so3561614iwn.11 for ; Sat, 12 Feb 2011 12:21:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type:content-transfer-encoding; bh=sbtpOXAe4Tq3UxJt2ckf/iYoPMvibaxLX3+NQiaNNUE=; b=mxgXrTkAWuTLGBMmdcr1hMlVP3FZ0RJDwqlw1Sg5+4PUbya2pce0yzTg/R3MEWrTrL kt9Bg3pZGvZGKSAHbSlIsqsHs8S9WIKohz9LH54M1lW3tQ2JejiK2k3MGK9IZJLSnytF xODfcB/l+psBYycBAWRYQ+BbyiF+P+zVwMMMs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=nc6RTInK7pzIWVE+zl7oOvLdRCqHQSCOLV1zUFpNBGl6L4cxeL5WffoalNbln9UyNH ieWlfk8J7celW/UJjTfLcpM5JhtRtedQTqktTQYn7RvQIlxaAU8UTLgKQYxOdxyVARg/ SArEAfbko5EtFdeqoA3daTaTmw3Mo7bal3nls= MIME-Version: 1.0 Received: by 10.231.35.136 with SMTP id p8mr1511006ibd.139.1297542085455; Sat, 12 Feb 2011 12:21:25 -0800 (PST) Received: by 10.231.32.10 with HTTP; Sat, 12 Feb 2011 12:21:25 -0800 (PST) In-Reply-To: References: Date: Sat, 12 Feb 2011 21:21:25 +0100 Message-ID: Subject: Re: userCtx in Views From: Benoit Chesneau To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On Sat, Feb 12, 2011 at 8:52 PM, Wordit Ltd wrote= : > Can you get the currently authenticated user inside a view? > Is userCtx.name not available? I get no results at all when I use it. > > I want to use the username to get values for the currently authenticated = user. > I know I can first get the session, then send the username as the key, > but that requires two separate requests. > > Thanks, > > Marcus > views know nothing about requests.. The easy way to do that may be to use l= ists. - beno=EEt