Hi,
Am Donnerstag, den 02.06.2011, 21:22 +0200 schrieb Cédric Krier:
> On 02/06/11 19:17 +0000, [email protected] wrote:
> > Reviewers: ,
> > Please review this at http://codereview.tryton.org/42001/
> Thanks to comment also on the design/API.

Why is it needed to instantiate the Pool every time before use? E.g.:

pool = Pool()
action_obj = pool.get('ir.action')

Since now it is a singleton, why we can not call a class method
directly? E.g.:

action_obj = Pool().get('ir.action')

It would be much less work to rewrite existing module code :-)

Regards
-- 
Udo Spallek

------------------------------------
virtual things
Preisler & Spallek GbR
Munich - Aix-la-Chapelle

Windeckstr. 77
81375 Munich - Germany
Tel: +49 (89) 710 481 55
Fax: +49 (89) 710 481 56

[email protected]
http://www.virtual-things.biz


-- 
[email protected] mailing list

Reply via email to