Revision 7d36f85e
b/snf-cyclades-app/synnefo/management/common.py | ||
---|---|---|
223 | 223 |
to this value. |
224 | 224 |
""" |
225 | 225 |
|
226 |
assert(isinstance(table, (list, tuple))), "Invalid table type" |
|
226 | 227 |
sep = separator if separator else " " |
227 | 228 |
|
228 | 229 |
if headers: |
230 |
assert(isinstance(headers, (list, tuple))), "Invalid headers type" |
|
229 | 231 |
table.insert(0, headers) |
230 | 232 |
|
231 | 233 |
# Find out the max width of each column |
Also available in: Unified diff