Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 8171 invoked from network); 15 Feb 2009 02:31:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Feb 2009 02:31:50 -0000 Received: (qmail 21451 invoked by uid 500); 15 Feb 2009 02:31:43 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 21413 invoked by uid 500); 15 Feb 2009 02:31:43 -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 21402 invoked by uid 99); 15 Feb 2009 02:31:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 14 Feb 2009 18:31:43 -0800 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of adamjpetty@gmail.com designates 209.85.218.163 as permitted sender) Received: from [209.85.218.163] (HELO mail-bw0-f163.google.com) (209.85.218.163) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 15 Feb 2009 02:31:37 +0000 Received: by bwz7 with SMTP id 7so2753245bwz.11 for ; Sat, 14 Feb 2009 18:31:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=THn3p+czTbcg+I/RBrFDLA2EloA5KcZH9xa0GKxhGC4=; b=o4Cnbfh/0d8URe19zsChGcyV2fjNTxxIvX0sT+0y5BM0Q9G0d47SPuwifDZlj3sIKg p/QFgspneF4syTlmOj99oDDYUJp95dgI9aF3b9c8wrm0rPWpxTOmcaROd2VgT/qb5/xF R+8dlQGcHQxG1HLUczfdsS4uh/fC31C3QIfZQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=OoOpYjGUHLsQll3R0OyrpwU/zn0+sAkPIB9GX7Dpyxz6LQuxpflOJMTxzfg8atFXfq ewsefjuisBkyEOrcAxf5X6NFtphhhLfVyuP/MWccfvpv+sI91PS/LuGiNjab1jHAXaTF Lb/3IlrUS7WiEU2VrXwHwGG5zRfrFmBVfXPOc= MIME-Version: 1.0 Received: by 10.181.48.4 with SMTP id a4mr1366246bkk.6.1234665075461; Sat, 14 Feb 2009 18:31:15 -0800 (PST) Date: Sat, 14 Feb 2009 21:31:15 -0500 Message-ID: <6a8c90ba0902141831k15abde84p24fa572958255917@mail.gmail.com> Subject: quick python / couch question From: Adam Petty To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=001485f645603d4efc0462ebdd70 X-Virus-Checked: Checked by ClamAV on apache.org --001485f645603d4efc0462ebdd70 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit My appologies if this isn't the right place...and yes I'm a neub at things both python and couch so I'll be greatly appreciative for any info available. I'm currently trying to get a python object to convert to a couch document to submit to the DB - but can't seem to find a good way to do it. for example: Id like to convert the following python document: {'username':'johnsmith','date'":(2009, 1, 1, 0, 0, 0, 3, 1, -1), 'names': {'lname':'smith','birtdate':(1974, 1, 20, 0, 0, 0, 3, 1, -1), 'fname':'tim'}} I'd like to write this directly to a couchDB - and I've tried jsonpickle, and looked all through couchdb.schema, but again am new at python and couch. I can see the dicts, and I know I can convert from a couchdoc to python automatically -- what am I missing. Again - thanks, Adam --001485f645603d4efc0462ebdd70--