Skip to content

Commit

Permalink
Fixing CrossReferenceMatrix to force object_list to be a list (in case
Browse files Browse the repository at this point in the history
of a generator)
  • Loading branch information
marinho committed Jun 13, 2011
1 parent f5826db commit 7ee0964
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -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
--------------------------------

Expand Down
2 changes: 1 addition & 1 deletion geraldo/cross_reference.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7ee0964

Please sign in to comment.