health
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Health] trytond.conf and tryton configuration


From: Luis Falcon
Subject: Re: [Health] trytond.conf and tryton configuration
Date: Mon, 14 Nov 2011 16:44:40 -0300

On Mon, Nov 14, 2011 at 4:13 PM, Cédric Krier <address@hidden> wrote:
> On 14/11/11 15:24 -0300, Luis Falcon wrote:
>> On Mon, Nov 14, 2011 at 2:56 PM, Cédric Krier <address@hidden> wrote:
>> > On 14/11/11 14:46 -0300, Luis Falcon wrote:
>> >> On Mon, Nov 14, 2011 at 12:03 PM, Cédric Krier <address@hidden> wrote:
>> >> > On 14/11/11 14:36 +0000, Bashar wrote:
>> >> >> Hi,
>> >> >> I installed trytond using pip and I want to connect it to a postgresql
>> >> >> database server, but, I can't find the configuration file that I should
>> >> >> modify to tell trytond to connect to DB server!
>> >> >> I searched for the trytond.conf, but, I didn't find it, so I tried to
>> >> >> modify the /usr/local/lib/python2.6/dist-packages/trytond/config.py by
>> >> >> setting the db host and other info, nothing works either.
>> >> >> Then, what shall I do in order to make tryton to connect to postgresql
>> >> >> server?
>> >> >
>> >> > We can not (at least we do not yet find how) install configuration files
>> >> > with pip. So you can grab the configuration file from the archive on
>> >> > PyPI.
>> >>
>> >> We could embed the default values in the server executable file. Then
>> >> invoking trytond it with a specific flag would generate the
>> >> trytond.conf file. The params will always be version-dependent.
>> >
>> > I don't really like this solution.
>> > We should have a Python way to install this configuration file.
>> The good thing about embedding the default values is that it can
>> generate the file when is missing (either the first time or if
>> deleted).
>
> There is already default values defined if there are not in the
> configuration file or if there is no configuration file.
I know, but I think it would be nice to be able to generate the
configuration file if such is missing, like in the initial
installation. Anyways, is for the wishlist, nothing critical.

>
> --
> Cédric Krier
>
> B2CK SPRL
> Rue de Rotterdam, 4
> 4000 Liège
> Belgium
> Tel: +32 472 54 46 59
> Email/Jabber: address@hidden
> Website: http://www.b2ck.com/
>



-- 
Luis Falcon
GNU Health
http://health.gnu.org



reply via email to

[Prev in Thread] Current Thread [Next in Thread]