Return-Path: Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: (qmail 81149 invoked from network); 17 Mar 2011 19:41:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 17 Mar 2011 19:41:19 -0000 Received: (qmail 6942 invoked by uid 500); 17 Mar 2011 19:41:19 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 6924 invoked by uid 500); 17 Mar 2011 19:41:19 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 6916 invoked by uid 99); 17 Mar 2011 19:41:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Mar 2011 19:41:19 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Mar 2011 19:41:13 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 306042388A2C; Thu, 17 Mar 2011 19:40:51 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1082661 - /cassandra/trunk/drivers/py/cql/results.py Date: Thu, 17 Mar 2011 19:40:51 -0000 To: commits@cassandra.apache.org From: eevans@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110317194051.306042388A2C@eris.apache.org> Author: eevans Date: Thu Mar 17 19:40:50 2011 New Revision: 1082661 URL: http://svn.apache.org/viewvc?rev=1082661&view=rev Log: Row should be iterable (iterate columns) Patch by eevans Modified: cassandra/trunk/drivers/py/cql/results.py Modified: cassandra/trunk/drivers/py/cql/results.py URL: http://svn.apache.org/viewvc/cassandra/trunk/drivers/py/cql/results.py?rev=1082661&r1=1082660&r2=1082661&view=diff ============================================================================== --- cassandra/trunk/drivers/py/cql/results.py (original) +++ cassandra/trunk/drivers/py/cql/results.py Thu Mar 17 19:40:50 2011 @@ -40,6 +40,9 @@ class Row(object): def __init__(self, key, columns, keyspace, cfam, decoder): self.key = key self.columns = ColumnsProxy(columns, keyspace, cfam, decoder) + + def __iter__(self): + return iter(self.columns) class ColumnsProxy(object): def __init__(self, columns, keyspace, cfam, decoder):