[ADD] openerp.tools.func.lazy_property():
authorChristophe Simonis <chs@openerp.com>
Mon, 24 Mar 2014 12:00:01 +0000 (13:00 +0100)
committerChristophe Simonis <chs@openerp.com>
Mon, 24 Mar 2014 12:00:01 +0000 (13:00 +0100)
commitc8eddb7d2296f823af809c1606e5ab561f6de1b4
treeb1efec4db5c37c30ae5579ce32cdc0e3f1a08bb1
parent58bd4d4950168946c8d0901aaff3d0079610bf13
[ADD] openerp.tools.func.lazy_property():

 Decorator for a lazy property of an object, i.e., an object attribute
 that is determined by the result of a method call evaluated once. To
 reevaluate the property, simply delete the attribute on the object, and
 get it again.

bzr revid: chs@openerp.com-20140324120001-935d90ye7tb8a5q4
openerp/tools/func.py