tinyerp / erppeek

A versatile tool for Odoo / OpenERP. *** Forked as Odooly ⟶
https://github.com/tinyerp/odooly
Other
171 stars 99 forks source link

Pretty print the list of modules. #32

Closed florentx closed 10 years ago

florentx commented 10 years ago
>>> client.modules('base')
defaultdict(<type 'list'>, {'installed': ['base', 'base_iban', 'base_setup', 'base_tools', 'base_vat']})

This should be cast to dict before printing.

matrixise commented 10 years ago

How will you do that? with a custom defaultdict? and an override of repr?

florentx commented 10 years ago

I think I'll simply replace

    return res

with

    return dict(res)
matrixise commented 10 years ago

of course, sorry, I didn't read the code.

in this case, my option is useless and completely stupid.

stef

florentx commented 10 years ago

now fixed