openerp-community team mailing list archive
-
openerp-community team
-
Mailing list archive
-
Message #02453
context=None why?
Hi!
I would like to ask why is the general use of context=None in the header
of methods? Why not context={} ?
In the second way we don't need to check all the time to be sure it is
an empty dict. And {} means False too, so i really don't understand this.
look this MP:
https://code.launchpad.net/~openerp-dev/openobject-addons/7.0-posbox-bug-cbi/+merge/151747
And i run into this problem a lot time during writing custom
functionalities!
thanks,
Csaba