Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 77291 invoked from network); 26 Oct 2010 17:43:16 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 26 Oct 2010 17:43:16 -0000 Received: (qmail 70314 invoked by uid 500); 26 Oct 2010 17:43:15 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 70236 invoked by uid 500); 26 Oct 2010 17:43:14 -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 70228 invoked by uid 99); 26 Oct 2010 17:43:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Oct 2010 17:43:14 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.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; Tue, 26 Oct 2010 17:43:10 +0000 Received: by iwn37 with SMTP id 37so6688514iwn.11 for ; Tue, 26 Oct 2010 10:42:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=9sP+w6kXsPhX61nd0/HkNWebRe48hxOU0x+7ATZTDgY=; b=Ha7l2xo75YtCBKq/m5VDJqK6a4PzZnSxN1kggppbu8MLLDNUwtC6LxtVpKZXmC8ZtU Z6fz08rIF7JHAL0danD32qWh2kDc5uW9VsQqix2jbTxlZcdlcD/pd0F03WlS2UMczVXE uX16//jLT1ZVBguqXml0FwSa6t4UGnuQRKDKY= 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=RRXaQr9cKPjQB7WR0gFaFSGg46jEp9z6EqChj3hjnr67loMjuETRFcbR39jtbFMt6F Pog/0pABdaAbg+0DcR0rg8C/8Dh6Ms2QbewBSN6wUKi+1+sS4mxoqBXKznRJgCSb6wFg Cl+pLIWFW5LTxZ38Z16W02Y4y6WMSh8fVIc/M= MIME-Version: 1.0 Received: by 10.231.172.75 with SMTP id k11mr3888747ibz.4.1288114969842; Tue, 26 Oct 2010 10:42:49 -0700 (PDT) Received: by 10.231.252.89 with HTTP; Tue, 26 Oct 2010 10:42:49 -0700 (PDT) In-Reply-To: <632DCD1F-DF82-469A-A8EC-B99B5EF137CC@ghcg.com> References: <632DCD1F-DF82-469A-A8EC-B99B5EF137CC@ghcg.com> Date: Tue, 26 Oct 2010 19:42:49 +0200 Message-ID: Subject: Re: CouchApp without app From: Benoit Chesneau To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Tue, Oct 26, 2010 at 7:22 PM, Mikhail Kuznetsov wrote: > Hi, everyone. > > I have a question about couchapp script. It is very useful than you want = to make some "web app". If I clean up files form vendor dir (i don't need t= hem), delete attachments. Try to push my design doc and get this: > > 2010-10-26 20:40:49 [CRITICAL] {'msg': '', 'status_int': 400, 'response':= } > > Traceback (most recent call last): > =A0File "/Library/Python/2.6/site-packages/couchapp/dispatch.py", line 48= , in dispatch > =A0 =A0return _dispatch(args) > =A0File "/Library/Python/2.6/site-packages/couchapp/dispatch.py", line 92= , in _dispatch > =A0 =A0return fun(conf, conf.app_dir, *args, **opts) > =A0File "/Library/Python/2.6/site-packages/couchapp/commands.py", line 74= , in push > =A0 =A0dbs =3D conf.get_dbs(dest) > =A0File "/Library/Python/2.6/site-packages/couchapp/config.py", line 149,= in get_dbs > =A0 =A0return [Database(dburl) for dburl in dburls] > =A0File "/Library/Python/2.6/site-packages/couchapp/client.py", line 209,= in __init__ > =A0 =A0self.res.head() > =A0File "/Library/Python/2.6/site-packages/restkit/resource.py", line 144= , in head > =A0 =A0return self.request("HEAD", path=3Dpath, headers=3Dheaders, **para= ms) > =A0File "/Library/Python/2.6/site-packages/couchapp/client.py", line 128,= in request > =A0 =A0raise RequestFailed(str(e)) > RequestFailed: {'msg': '', 'status_int': 400, 'response': } > > How can I clean up couchapp default project to suite my needs? I want jus= t editing design document without copy past pain. > > Without couchapp only choice that I got is to copy-past files from my IDE= to design document =A0Save it and finally check results. I look at ice edi= tor from jchris. It is only viewing, and as I see it don't frozen on May 20= 10. > > Maybe some maven plugins or something else can be done to automate design= documents development and maintain? > -- > Sincerely yours, > Mikhail Kuznetsov > > > The error isn't due to the file you deleted . Here it's couchdb saying request is bad (error 400) . How looks your folder ? Also you can create app templates to fill your needs: couchapp generate --template=3Dmytemplate where mytemplates is a folder in ~/.couchapp/templates/ - beno=EEt