Hi, in [1][2] we introduce a ``get_singleton()`` method for Singelton models. In the modules we always use a patter like this::
Config = pool.get('xxx.configuration')
config = Config(1)
or
Configuration = pool.get('xxx.configuration')
config = Configuration(1)
instead of::
config = Config.get_singleton()
Is the use of ``get_singleton()`` recommended in module code or better
stay with config = Config(1)?
Best
Udo Spallek
[1]http://doc.tryton.org/3.6/trytond/doc/ref/models/models.html#trytond.model.ModelSingleton.get_singleton
http://doc.tryton.org/3.6/trytond/doc/ref/models/models.html#trytond.model.ModelSingleton.get_singleton
[2]
http://hg.tryton.org/trytond/file/0e853ce7b6b5/trytond/model/modelsingleton.py#l12
pgpAWIvevUkbj.pgp
Description: Digitale Signatur von OpenPGP
