Skip to content
Permalink
Browse files

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

of a generator)
  • Loading branch information
marinho committed Jun 13, 2011
1 parent f5826db commit 7ee0964f9832a7881fa1d4deb20ec23655d5afd8
Showing with 6 additions and 1 deletion.
  1. +5 −0 CHANGES
  2. +1 −1 geraldo/cross_reference.py
@@ -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
--------------------------------

@@ -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

0 comments on commit 7ee0964

Please sign in to comment.
You can’t perform that action at this time.