Comment 1 for bug 1288708

Revision history for this message
Sébastien Alix (sebastien-alix) wrote :

Hi Martin,

Hi don't know if it is relevant this kind of documentation with setattr/getattr, as it is a common feature of Python. I mean it applies to every objects:

>>> order_obj = getattr(oerp, 'get')('sale.order')
>>> order = getattr(order_obj, 'browse')(4)

(same behaviour for setattr)

Have you some reasons to put that in the tutorial for this specific case?
But this kind of example would have its place in the 'example' folder of the project. What do you think?