[web2py] Re: AppConfig and % interpolation

2016-09-27 Thread Niphlod
yep, ATM I'd go for rawconfigparser but someone asked for interpolation so we have two distinct "paths" . Just need to rule out one ^_^ On Tuesday, September 27, 2016 at 6:56:10 PM UTC+2, Ivan wrote: > > escaping % with % solves the problem > however I think it would be better to not force

[web2py] Re: AppConfig and % interpolation

2016-09-27 Thread Ivan
escaping % with % solves the problem however I think it would be better to not force the user to escape each % in a .ini file the exception comes from the ConfigParser python module (more precisely SafeConfigParser) used in AppConfig maybe a better solution is to use RawConfigParser that

[web2py] Re: AppConfig and % interpolation

2016-09-27 Thread Niphlod
hum. did you try excaping the % with % , which means basically having %% instead of % ? On Tuesday, September 27, 2016 at 4:15:45 PM UTC+2, Ivan wrote: > > I don't want to interpolate. > I have an option with a % inside and the AppConfig raises an exception. > -- Resources: - http://web2py.com

[web2py] Re: AppConfig and % interpolation

2016-09-27 Thread Ivan
I don't want to interpolate. I have an option with a % inside and the AppConfig raises an exception. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You

[web2py] Re: AppConfig and % interpolation

2016-09-27 Thread Niphlod
and it's correct that it does, as it can work with json with doesn't have any interpolation facilities. if you want to interpolate, for the moment, use your app's code. On Tuesday, September 27, 2016 at 3:43:24 PM UTC+2, Ivan wrote: > > If the .ini file contains an option with a % (eg a