Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 27490 invoked from network); 9 Jan 2009 23:06:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Jan 2009 23:06:27 -0000 Received: (qmail 47723 invoked by uid 500); 9 Jan 2009 23:06:21 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 47671 invoked by uid 500); 9 Jan 2009 23:06:20 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 47660 invoked by uid 99); 9 Jan 2009 23:06:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Jan 2009 15:06:20 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Jan 2009 23:06:20 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id DE084234C4B3 for ; Fri, 9 Jan 2009 15:05:59 -0800 (PST) Message-ID: <815752896.1231542359908.JavaMail.jira@brutus> Date: Fri, 9 Jan 2009 15:05:59 -0800 (PST) From: "Brian Palmer (JIRA)" To: dev@couchdb.apache.org Subject: [jira] Created: (COUCHDB-202) [PATCH] Support other languages for views in Futon MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [PATCH] Support other languages for views in Futon -------------------------------------------------- Key: COUCHDB-202 URL: https://issues.apache.org/jira/browse/COUCHDB-202 Project: CouchDB Issue Type: Improvement Components: Administration Console Reporter: Brian Palmer Attachments: Futon_languages_support.patch Attached is a small patch to generalize Futon to support any language defined in the .ini file. If the language is recognized, Futon will use the correct "stub" map function in the edit textarea. Currently I've added stub map methods for javascript and ruby, more could be added. Languages are checked on save and handled conservatively. So once a view has been created, its language cannot be changed. And when first saving a view, the target document's language is checked and an error is returned if the languages don't match. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.