cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eev...@apache.org
Subject svn commit: r1082661 - /cassandra/trunk/drivers/py/cql/results.py
Date Thu, 17 Mar 2011 19:40:51 GMT
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):



Mime
View raw message