On 18/10/10 08:21 -0700, Vincent wrote:
> Hi,
> 
> I've written a small command-line driven utility that makes use of
> Proteus to do some maintenance work on a Tryton database model.
> 
> I wanted to use the very convenient Python "optparse" library for
> handling commandline options in my script.
> I've noticed that I get errors when I I want to use parameters that
> Trytond itself does not recognize, so it seems I can´t use them in my
> own script when using Proteus. Also when I add my own "-c" parameter
> to the parser, it seems to conflict with Tryton's own --config
> parameter as I get file I/O errors when initializing Proteus.
> 
> Not a very big deal, but Is there an easy way to fix this behaviour
> when using Proteus?

Not to my knowledge. It is because trytond parse the arguments in config.py
It should be done in bin/trytond only. It is a legacy from OpenERP that should
be fixed.

-- 
Cédric Krier

B2CK SPRL
Rue de Rotterdam, 4
4000 Liège
Belgium
Tel: +32 472 54 46 59
Email/Jabber: [email protected]
Website: http://www.b2ck.com/

-- 
[email protected] mailing list

Reply via email to