Revision 4571b863 snf-webproject/synnefo/webproject/management/utils.py

b/snf-webproject/synnefo/webproject/management/utils.py
156 156
            assert(len(table) == 1)
157 157
            row = table[0]
158 158
            max_key = max(map(len, headers))
159
            max_val = max(map(len, row))
160 159
            for row in table:
161 160
                for (k, v) in zip(headers, row):
162 161
                    k = uenc(k.ljust(max_key))
163
                    v = uenc(v.ljust(max_val))
162
                    v = uenc(v)
164 163
                    out.write("%s: %s\n" % (k, v))
165 164
        else:
166 165
            # Find out the max width of each column

Also available in: Unified diff