mirror of
https://github.com/kennethreitz/tablib.git
synced 2026-06-05 15:00:19 +00:00
dynamic columns bugfix for @mwalling :)
This commit is contained in:
@@ -15,4 +15,5 @@ Patches and Suggestions
|
||||
- Luca Beltrame
|
||||
- Benjamin Wohlwend
|
||||
- Erik Youngren
|
||||
- Mark Rogers
|
||||
- Mark Rogers
|
||||
- Mark Walling
|
||||
+10
@@ -1,6 +1,16 @@
|
||||
History
|
||||
-------
|
||||
|
||||
0.9.11 (2011-06-30)
|
||||
+++++++++++++++++++
|
||||
|
||||
* Bugfixes
|
||||
|
||||
0.9.10 (2011-06-22)
|
||||
+++++++++++++++++++
|
||||
|
||||
* Bugfixes
|
||||
|
||||
0.9.9 (2011-06-21)
|
||||
++++++++++++++++++
|
||||
|
||||
|
||||
+4
-6
@@ -18,8 +18,8 @@ from tablib.compat import OrderedDict
|
||||
|
||||
|
||||
__title__ = 'tablib'
|
||||
__version__ = '0.9.10'
|
||||
__build__ = 0x000910
|
||||
__version__ = '0.9.11'
|
||||
__build__ = 0x000911
|
||||
__author__ = 'Kenneth Reitz'
|
||||
__license__ = 'MIT'
|
||||
__copyright__ = 'Copyright 2011 Kenneth Reitz'
|
||||
@@ -617,11 +617,9 @@ class Dataset(object):
|
||||
See :ref:`dyncols` for an in-depth example.
|
||||
"""
|
||||
|
||||
col = list(col)
|
||||
|
||||
# Callable Columns...
|
||||
if len(col) == 1 and hasattr(col[0], '__call__'):
|
||||
col = list(map(col[0], self._data))
|
||||
if hasattr(col, '__call__'):
|
||||
col = list(map(col, self._data))
|
||||
|
||||
col = self._clean_col(col)
|
||||
self._validate(col=col)
|
||||
|
||||
Reference in New Issue
Block a user