Le 16/07/2014 15:29, Cédric Krier a écrit :
> On 16 Jul 14:43, Dominique Chabord wrote:
>> Hello,
>> I think this option is required and should be defined per database and
>> not in configuration file.
> 
> Soon it will be the same as one database per process.

This is not a valid argument. If Tryton runs a single database at a
time, it can run several databases one after the other. Nevertheless
will Tryton be single company too ? because this parameter is company
dependant.

> Also I don't want to have it in the database for many reasons:
> 
>     - can not really be changed

There are many things in the database which cannot be changed and if it
cannot be changed, it enforces the fact that it has nothing to do in the
start configuration of the process. What about a module ?

>     - will cost too much to read each time

Then replace the database by a big config file, and you will be fast ;-)
Out of curiosity, why do you need to read each time from the database
and one time from the config file ? And why is it different for other
company-related data ?

> 
> There will be more and more things going in the configuration file like
> the all ldap_connection module, the price digits etc.

price digits and sum ordering are given accounting parameters of a
company. Two companies need different values.

> 
>> Btw, if implemented in conf file, how would the history behave when
>> conf is changed ? or when database is restored ?
> 
> People should be careful to not shoot their own foot.

tryton must be manageable too. For restoring any archive of a database
you will need to know about the configuration file of the original
server, adapt some parameters on your local server and start it.
The configuration file should define parameters related to the execution
context and should not depend on the database you restore.

my 2 cts

-- 
Dominique Chabord - SISalp
Logiciel libre pour l'entreprise : Gestion Odoo, OpenERP et Tryton
18 avenue Beauregard 74960 Cran Gevrier
145A rue Alexandre Borrely 83000 Toulon
tél +33(0)950274960 fax +33(0)955274960 mob +33(0)622616438
http://sisalp.fr

Reply via email to