Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixing CrossReferenceMatrix to force object_list to be a list (in case

of a generator)
  • Loading branch information...
commit 7ee0964f9832a7881fa1d4deb20ec23655d5afd8 1 parent f5826db
@marinho authored
Showing with 6 additions and 1 deletion.
  1. +5 −0 CHANGES
  2. +1 −1  geraldo/cross_reference.py
View
5 CHANGES
@@ -1,3 +1,8 @@
+2011-06-13: Version 0.4.13-stable
+--------------------------------
+
+* Fixing CrossReferenceMatrix to force object_list to be a list (in case of a generator)
+
2011-03-29: Version 0.4.12-stable
--------------------------------
View
2  geraldo/cross_reference.py
@@ -47,7 +47,7 @@ class CrossReferenceMatrix(object):
def __init__(self, objects_list, rows_attribute, cols_attribute, decimal_as_float=None,
rows_values=None, cols_values=None):
- self.objects_list = objects_list or []
+ self.objects_list = list(objects_list) or []
self.rows_attr = rows_attribute
self.cols_attr = cols_attribute
self.rows_values = rows_values
Please sign in to comment.
Something went wrong with that request. Please try again.