Pre-configuring the tryton client with server and database settings

124 views
Skip to first unread message

Alexander Davis

unread,
Nov 19, 2016, 5:55:04 AM11/19/16
to tryton
Hello guys,

I am looking at ways of simplifying the tryton client by producing an exe file with our server and database settings pre-configured in a profile rather than making the end-user having to manage profiles. Sort of like a "Kiosk Mode" if you will, where the end-user would just have to worry about entering their username and password. I have the following questions:

* Where does the Tryton client store the profile settings once it is set. I noticed that once i setup a profile on my laptop it sticks no matter what version of Tryton i use
* Is it possible to package a config file within the onefile exe that would already include the pre-configured profile like the demo_server is right now? I made changes to the config.py file pointing to my tryton server but it didnt seem to make a difference.


I am not sure if this would be useful for other users but it would be very useful for a project i am working on right now where the end-users would not be very tech-savvy

Alex

Cédric Krier

unread,
Nov 19, 2016, 6:30:03 AM11/19/16
to tryton
On 2016-11-19 02:30, Alexander Davis wrote:
> Hello guys,
>
> I am looking at ways of simplifying the tryton client by producing an exe
> file with our server and database settings pre-configured in a profile
> rather than making the end-user having to manage profiles. Sort of like a
> "Kiosk Mode" if you will, where the end-user would just have to worry about
> entering their username and password. I have the following questions:
>
> * Where does the Tryton client store the profile settings once it is set. I
> noticed that once i setup a profile on my laptop it sticks no matter what
> version of Tryton i use

It is in profiles.cfg, see
http://doc.tryton.org/4.0/tryton/doc/usage.html#configuration-file

Rem: On Windows, '~' is %APPDATA.

> * Is it possible to package a config file within the onefile exe that would
> already include the pre-configured profile like the demo_server is right
> now? I made changes to the config.py file pointing to my tryton server but
> it didnt seem to make a difference.

What about having a installer script which execute the tryton-setup.exe
and after that create the profile file and also tryton.conf.

> I am not sure if this would be useful for other users but it would be very
> useful for a project i am working on right now where the end-users would
> not be very tech-savvy

You also have the option of sao, the web client.

--
Cédric Krier - B2CK SPRL
Email/Jabber: cedric...@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

Dominique Chabord

unread,
Nov 19, 2016, 6:43:28 AM11/19/16
to try...@googlegroups.com
hi,

the infos you are looking for are in the client conf file.

regenerating an exe for this seems off-topic and windows-only.
I think a shortcut to set a config file and start the client is straightforward.
> --
> You received this message because you are subscribed to the Google Groups
> "tryton" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/tryton/bd32d4aa-b131-4f35-8a57-7edc8266090d%40googlegroups.com.



--
Dominique Chabord - SISalp
Logiciel libre pour l'entreprise Tryton et open-source Odoo, OpenERP
18 avenue Beauregard 74960 Cran Gevrier
145A rue Alexandre Borrely 83000 Toulon
tel(repondeur) +33(0)950274960 fax +33(0)955274960 mob +33(0)622616438
http://sisalp.fr
http://openerp-online.fr
https://twitter.com/SISalp l'actualité de vos services en temps réel.
Message has been deleted

Alexander Davis

unread,
Nov 19, 2016, 7:46:59 AM11/19/16
to tryton, dominiqu...@sisalp.org


On Saturday, November 19, 2016 at 12:43:28 PM UTC+1, Dominique Chabord wrote:
hi,

the infos you are looking for are in the client conf file.

regenerating an exe for this seems off-topic and windows-only.
I think a shortcut to set a config file and start the client is straightforward.
Now that i know the location of the file you're right. I'll look into it further.

Thanks 
Message has been deleted

Alexander Davis

unread,
Nov 19, 2016, 10:15:00 AM11/19/16
to tryton
Thanks for the tips.

I have taken the files from %APPDATA%, edited them, and added them in a folder to reside with the source files. I then include the folder within the setup.nsi and setup-single.nsi and set it to copy the files to their rightful location. So everytime the single file is run or the setup is completed, it copies my config files into the %APPDATA% and presto, all settings are set automatically. 

Cédric Krier

unread,
Nov 19, 2016, 12:04:31 PM11/19/16
to tryton
On 2016-11-19 05:29, Alexander Davis wrote:
> After i cleared the config files in %APPDATA% and ran Tryton again using an
> edited config file, some settings have appeared to have changed according
> to what i wanted, but the default profile i created in the file does not
> replace the default demo.tryton even though the new server ip, port and
> credentials appear in their respective fields... Any idea what could be
> causing this?

I would help if you can provide the content of each files.
Reply all
Reply to author
Forward
0 new messages