On Monday, October 27, 2014 9:48:40 AM UTC+1, Cédric Krier wrote:
>
> On 27 Oct 12:07, Farid Shahy wrote: 
> > hi 
> > When running trytond with config file specified with -c parameter, if 
> the 
> > file does not exist or 
> > the user does not have permission to access config file, no warning or 
> error 
> > is displayed. then 
> > when you try to login, it says that admin password is wrong. is this a 
> bug? 
>
> This is the behavior describes in [1]. 
> Maybe we should use RawConfigParser.readfp. 
>
> its not required to use the file-descriptor function but a "if not 
self.read(): raise" at 
https://github.com/tryton/trytond/blob/develop/trytond/config.py#L66 would 
do the trick...
("Return list of successfully read files.")
this behaviour really gave me a bad time....

> [1] 
>
> https://docs.python.org/2/library/configparser.html#ConfigParser.RawConfigParser.read
>  
>
> -- 
> Cédric Krier - B2CK SPRL 
> Email/Jabber: [email protected] <javascript:> 
> Tel: +32 472 54 46 59 
> Website: http://www.b2ck.com/ 
>

regards 

Reply via email to