You can subscribe to this list here.
| 2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(5) |
Oct
(2) |
Nov
(18) |
Dec
(26) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2006 |
Jan
(14) |
Feb
(28) |
Mar
(21) |
Apr
(17) |
May
(23) |
Jun
(12) |
Jul
(12) |
Aug
(7) |
Sep
(10) |
Oct
|
Nov
(4) |
Dec
(10) |
| 2007 |
Jan
(5) |
Feb
(8) |
Mar
|
Apr
|
May
(7) |
Jun
(1) |
Jul
(3) |
Aug
(3) |
Sep
(20) |
Oct
(3) |
Nov
(2) |
Dec
(12) |
| 2008 |
Jan
(40) |
Feb
(15) |
Mar
(1) |
Apr
|
May
(6) |
Jun
(19) |
Jul
(2) |
Aug
(17) |
Sep
(13) |
Oct
(7) |
Nov
(16) |
Dec
(5) |
| 2009 |
Jan
(15) |
Feb
(11) |
Mar
(11) |
Apr
(8) |
May
(6) |
Jun
(15) |
Jul
(19) |
Aug
(2) |
Sep
|
Oct
(19) |
Nov
(1) |
Dec
(3) |
| 2010 |
Jan
(12) |
Feb
(25) |
Mar
(45) |
Apr
(4) |
May
(2) |
Jun
(4) |
Jul
(6) |
Aug
(13) |
Sep
(1) |
Oct
(2) |
Nov
(2) |
Dec
(9) |
| 2011 |
Jan
(24) |
Feb
(7) |
Mar
(1) |
Apr
(6) |
May
(3) |
Jun
(3) |
Jul
|
Aug
(13) |
Sep
(9) |
Oct
(7) |
Nov
(17) |
Dec
|
| 2012 |
Jan
|
Feb
|
Mar
(5) |
Apr
(3) |
May
|
Jun
|
Jul
(3) |
Aug
(2) |
Sep
(4) |
Oct
|
Nov
|
Dec
|
| 2013 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(12) |
Oct
|
Nov
|
Dec
|
| 2014 |
Jan
(4) |
Feb
(3) |
Mar
|
Apr
(17) |
May
|
Jun
|
Jul
|
Aug
(5) |
Sep
(3) |
Oct
(3) |
Nov
|
Dec
|
| 2015 |
Jan
(11) |
Feb
|
Mar
|
Apr
(2) |
May
(1) |
Jun
|
Jul
|
Aug
(3) |
Sep
|
Oct
|
Nov
|
Dec
|
| 2016 |
Jan
|
Feb
(2) |
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
(10) |
Dec
|
| 2017 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: F. <bou...@gm...> - 2010-08-13 12:32:22
|
Hi, I don't know if it is a bug or if I'm using the library in a wrong way but I can pass successfully a configfile which is obviously wrong. here, the files: cat monte.py http://pastebin.com/2Z8JUHrH cat choices.conf http://pastebin.com/EstuqNhK cat specs.conf http://pastebin.com/EVhh6vfy _________________ If choices.conf is [Pierre] Lundi=r then it prints OOPS. _________________ If choices.conf is [Pierre] Lundi=r [Paul] Lundi=r then it prints OOPS. But if only one variable named Lundi is wrong, it prints 'OK' Do you have any idea? I didn't any clue in the documentation, maybe I missed an option... Regards, Francois. |
|
From: Michael F. <fuz...@vo...> - 2010-08-11 13:00:45
|
On 11/08/2010 13:41, Tom wrote: > Hi, > > i have a dict and want to merge the dict into my configobj: > > inobj = configobj.ConfigObj(indict) > conf.merge(inobj) #conf is the configobj > > > > is it possible to revert the merge after i merged? > > > No, there is no way to revert a merge. You could copy the ConfigObj instance first and do the merge into a copy though. Michael > Cheers, > > Tom > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > _______________________________________________ > Configobj-develop mailing list > Con...@li... > https://lists.sourceforge.net/lists/listinfo/configobj-develop > -- http://www.ironpythoninaction.com/ http://www.voidspace.org.uk/blog READ CAREFULLY. By accepting and reading this email you agree, on behalf of your employer, to release me from all obligations and waivers arising from any and all NON-NEGOTIATED agreements, licenses, terms-of-service, shrinkwrap, clickwrap, browsewrap, confidentiality, non-disclosure, non-compete and acceptable use policies (”BOGUS AGREEMENTS”) that I have entered into with your employer, its partners, licensors, agents and assigns, in perpetuity, without prejudice to my ongoing rights and privileges. You further represent that you have the authority to release me from any BOGUS AGREEMENTS on behalf of your employer. |
|
From: Tom <to...@go...> - 2010-08-11 12:41:35
|
Hi, i have a dict and want to merge the dict into my configobj: inobj = configobj.ConfigObj(indict) conf.merge(inobj) #conf is the configobj is it possible to revert the merge after i merged? Cheers, Tom |
|
From: Andrew G. <and...@gm...> - 2010-08-05 09:36:55
|
On Thu, Aug 5, 2010 at 1:31 AM, Tom <to...@go...> wrote: > Hi, > > i want to find values which are in the configspec but not in the config > file and i want to fill the config file with the default values from the > configspec. How to do this? > Just the validate the config with the configspec and the spec defaults will be used. If you plan to rewrite the config file with defaults from the configspec you may want to set copy=True. http://www.voidspace.org.uk/python/configobj.html#validate ~Andrew |
|
From: Tom <to...@go...> - 2010-08-05 06:31:37
|
Hi, i want to find values which are in the configspec but not in the config file and i want to fill the config file with the default values from the configspec. How to do this? Cheers, Tom |
|
From: Michael F. <fuz...@vo...> - 2010-07-28 14:48:32
|
On 26/07/2010 13:52, tin...@li... wrote:
> Hallo,
> I was suggest to use this module to handle configuration values that can be
> modify via GUI from the user.
> I find the program powerful and quite easy to understan.
> However I'm stuck trying to write the validation file programatically.
> Here is my code; apparently if I write a file with the fileobject function f.
> write, I have some error and all values are read as strings.I suspect a problem
> with the encoding, as writing the same file directly works all right (it is
> the example provided in the tutorial).
> if you could give me hints how to write the file prgorammatically it would be
> great.
>
> config = ConfigObj()
> config.filename = 'config.ini'
> config['name'] = 'Fred Smith'
> config['Favourites'] = {}
> config['Favourites']['color'] = 'Mostly Red'
> config['Favourites']['software'] = {'ide': 'Emacs'}
> config.write()
>
> valstr = '''name = string(min=1, max=30, default=Fred)
> age = float(min=0, max=200, default=29)
> attributes = string_list(min=5, max=5, default=list('arms', 'legs', 'head',
> 'body', 'others'))
> likes_cheese = boolean(default=True)
> favourite_color = option('red', 'green', 'blue', default="red")
> '''
>
> f = open ('configspec.ini','w')
> f.write(valstr)
> f.close
>
This should be f.close() - when I change this I get the following
results from your code (which I think is what you were expecting):
else
True
Fred Smith
<type 'float'>
['arms', 'legs', 'head', 'body', 'others']
All the best,
Michael
> config = ConfigObj('config.ini', configspec='configspec.ini')
>
> validator = Validator()
> result = config.validate(validator)
>
> if result != True:
> print 'Config file validation failed!'
> else:
> print 'else'
>
>
> #config = ConfigObj('config.ini', configspec='configspec.ini')
> validator = Validator()
> a=config.validate(validator)
> print a
> print config['name']
> print type(config['age'])
> print config['attributes']
>
> ------------------------------------------------------------------------------
> The Palm PDK Hot Apps Program offers developers who use the
> Plug-In Development Kit to bring their C/C++ apps to Palm for a share
> of $1 Million in cash or HP Products. Visit us here for more details:
> http://ad.doubleclick.net/clk;226879339;13503038;l?
> http://clk.atdmt.com/CRS/go/247765532/direct/01/
> _______________________________________________
> Configobj-develop mailing list
> Con...@li...
> https://lists.sourceforge.net/lists/listinfo/configobj-develop
>
--
http://www.ironpythoninaction.com/
|
|
From: Michael F. <fuz...@vo...> - 2010-07-28 11:35:58
|
On 28/07/2010 12:16, Tom wrote:
> Hi,
>
> i use a configspec and want to validate a string_list. How to do this?
>
> My configspec contains:
> days = list(min=7, max=7, default=list('Mon', 'Tue', 'Wed', 'Thu',
> 'Fri', 'Sat', 'Sun'))
>
>
> How can i check that the days-list only contains possible values (like
> Mon) and not something like 'testday' ?
>
> What i need is something like a multioption list.
>
> I want to use this for a web-interface with checkboxes.
>
Hello Tom,
validate doesn't include an "option list" validation built in, but it
would be very easy to add. See this article on writing and using custom
validators and look at the validate source code (very short) for some
examples:
http://www.voidspace.org.uk/python/articles/configobj.shtml#writing-a-custom-check
All the best,
Michael Foord
>
> Cheers,
>
> Tom
>
>
> ------------------------------------------------------------------------------
> The Palm PDK Hot Apps Program offers developers who use the
> Plug-In Development Kit to bring their C/C++ apps to Palm for a share
> of $1 Million in cash or HP Products. Visit us here for more details:
> http://ad.doubleclick.net/clk;226879339;13503038;l?
> http://clk.atdmt.com/CRS/go/247765532/direct/01/
> _______________________________________________
> Configobj-develop mailing list
> Con...@li...
> https://lists.sourceforge.net/lists/listinfo/configobj-develop
>
--
http://www.ironpythoninaction.com/
http://www.voidspace.org.uk/blog
READ CAREFULLY. By accepting and reading this email you agree, on behalf of your employer, to release me from all obligations and waivers arising from any and all NON-NEGOTIATED agreements, licenses, terms-of-service, shrinkwrap, clickwrap, browsewrap, confidentiality, non-disclosure, non-compete and acceptable use policies (”BOGUS AGREEMENTS”) that I have entered into with your employer, its partners, licensors, agents and assigns, in perpetuity, without prejudice to my ongoing rights and privileges. You further represent that you have the authority to release me from any BOGUS AGREEMENTS on behalf of your employer.
|
|
From: Tom <to...@go...> - 2010-07-28 11:16:57
|
Hi,
i use a configspec and want to validate a string_list. How to do this?
My configspec contains:
days = list(min=7, max=7, default=list('Mon', 'Tue', 'Wed', 'Thu',
'Fri', 'Sat', 'Sun'))
How can i check that the days-list only contains possible values (like
Mon) and not something like 'testday' ?
What i need is something like a multioption list.
I want to use this for a web-interface with checkboxes.
Cheers,
Tom
|
|
From: <tin...@li...> - 2010-07-26 12:52:42
|
Hallo,
I was suggest to use this module to handle configuration values that can be
modify via GUI from the user.
I find the program powerful and quite easy to understan.
However I'm stuck trying to write the validation file programatically.
Here is my code; apparently if I write a file with the fileobject function f.
write, I have some error and all values are read as strings.I suspect a problem
with the encoding, as writing the same file directly works all right (it is
the example provided in the tutorial).
if you could give me hints how to write the file prgorammatically it would be
great.
config = ConfigObj()
config.filename = 'config.ini'
config['name'] = 'Fred Smith'
config['Favourites'] = {}
config['Favourites']['color'] = 'Mostly Red'
config['Favourites']['software'] = {'ide': 'Emacs'}
config.write()
valstr = '''name = string(min=1, max=30, default=Fred)
age = float(min=0, max=200, default=29)
attributes = string_list(min=5, max=5, default=list('arms', 'legs', 'head',
'body', 'others'))
likes_cheese = boolean(default=True)
favourite_color = option('red', 'green', 'blue', default="red")
'''
f = open ('configspec.ini','w')
f.write(valstr)
f.close
config = ConfigObj('config.ini', configspec='configspec.ini')
validator = Validator()
result = config.validate(validator)
if result != True:
print 'Config file validation failed!'
else:
print 'else'
#config = ConfigObj('config.ini', configspec='configspec.ini')
validator = Validator()
a=config.validate(validator)
print a
print config['name']
print type(config['age'])
print config['attributes']
|
|
From: Michael F. <fuz...@vo...> - 2010-07-14 10:06:34
|
On 14/07/2010 10:05, Tom wrote: > Hi, > > i use validate and a configspec to validate my config file. But it's > still possible to write any other key/values (not mentioned in my > configspec) in the config file and the validation process still returns > True. How to handle this? > > As of ConfigObj 4.7.0 you can use the get_extra_values function to find out if there were any additional values, not covered by the configspec, in a config file: http://www.voidspace.org.uk/python/configobj.html#get-extra-values All the best, Michael Foord > Cheers, > > Tom > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Configobj-develop mailing list > Con...@li... > https://lists.sourceforge.net/lists/listinfo/configobj-develop > -- http://www.ironpythoninaction.com/ http://www.voidspace.org.uk/blog READ CAREFULLY. By accepting and reading this email you agree, on behalf of your employer, to release me from all obligations and waivers arising from any and all NON-NEGOTIATED agreements, licenses, terms-of-service, shrinkwrap, clickwrap, browsewrap, confidentiality, non-disclosure, non-compete and acceptable use policies (”BOGUS AGREEMENTS”) that I have entered into with your employer, its partners, licensors, agents and assigns, in perpetuity, without prejudice to my ongoing rights and privileges. You further represent that you have the authority to release me from any BOGUS AGREEMENTS on behalf of your employer. |
|
From: Tom <to...@go...> - 2010-07-14 09:05:51
|
Hi, i use validate and a configspec to validate my config file. But it's still possible to write any other key/values (not mentioned in my configspec) in the config file and the validation process still returns True. How to handle this? Cheers, Tom |
|
From: Michael F. <fuz...@vo...> - 2010-06-22 23:01:07
|
On 22/06/2010 23:20, Etienne Robillard wrote: > Hi Michael, > > Thanks for your input! > > I like the idea of defaults settings too. configspecs are the standard way to provide defaults. > This makes packages that needs > configuration files to override only the desired settings. However, as you > pointed out, my use case is hairy and my development.ini needs some > refactoring as its having a tendency to accumulate too many sections. > Shorter config files would be best. Thus, a include statement would include > all config items and merge them in a Section instance. I will look for > doing > a patch as this seems a easy fix.. > If you provide a patch I promise to consider it for the next major release. Michael > > Michael Foord wrote: > >> On 21/06/2010 11:35, Etienne Robillard wrote: >> >>> Hi, >>> >>> would there be any way to include config files from within >>> a config section ? >>> >>> I would like doing the following: >>> >>> [item1] >>> include path/to/item1.ini >>> >>> >>> >> Configobj doesn't currently include any way to "include" sub config >> files - although it does have programmatic support for merging them >> (see the merge method). >> >> >>> Although this seems to break the current RFC-822 rule >>> >>> >> Configobj isn't bound by rfc-822 anyway. :-) >> >> >>> for config files section as this statement is missing the equal >>> syntax control block. However, this would be a great way >>> to make ConfigObj even more powerful; allowing config items to recycle >>> common config items. Would there be a better way to include shared >>> config items with ConfigObj ? >>> >>> >> Hmmm... I prefer defaults, which obviously doesn't meet all use cases. >> I'm not sure about this - there are lots of (over the years) different >> feature requests for cross-referencing, including files, a heirarchy >> of config files and so on. No single proposal strikes me as >> particularly elegant nor meets *all* the use cases. >> >> I'm open to patches (with tests and documentation of course), but this >> isn't an itch I particularly feel like scratching myself. >> > No problem, I'll handle and report here once i find some time to investigate > configobj! ;) > >> All the best, >> >> Michael Foord >> >> > Cheers, > > E > > -- http://www.ironpythoninaction.com/ http://www.voidspace.org.uk/blog READ CAREFULLY. By accepting and reading this email you agree, on behalf of your employer, to release me from all obligations and waivers arising from any and all NON-NEGOTIATED agreements, licenses, terms-of-service, shrinkwrap, clickwrap, browsewrap, confidentiality, non-disclosure, non-compete and acceptable use policies (”BOGUS AGREEMENTS”) that I have entered into with your employer, its partners, licensors, agents and assigns, in perpetuity, without prejudice to my ongoing rights and privileges. You further represent that you have the authority to release me from any BOGUS AGREEMENTS on behalf of your employer. |
|
From: Etienne R. <er...@gt...> - 2010-06-22 22:12:19
|
Hi Michael, Thanks for your input! I like the idea of defaults settings too. This makes packages that needs configuration files to override only the desired settings. However, as you pointed out, my use case is hairy and my development.ini needs some refactoring as its having a tendency to accumulate too many sections. Shorter config files would be best. Thus, a include statement would include all config items and merge them in a Section instance. I will look for doing a patch as this seems a easy fix.. Michael Foord wrote: > On 21/06/2010 11:35, Etienne Robillard wrote: >> Hi, >> >> would there be any way to include config files from within >> a config section ? >> >> I would like doing the following: >> >> [item1] >> include path/to/item1.ini >> >> > > Configobj doesn't currently include any way to "include" sub config > files - although it does have programmatic support for merging them > (see the merge method). > >> Although this seems to break the current RFC-822 rule >> > > Configobj isn't bound by rfc-822 anyway. :-) > >> for config files section as this statement is missing the equal >> syntax control block. However, this would be a great way >> to make ConfigObj even more powerful; allowing config items to recycle >> common config items. Would there be a better way to include shared >> config items with ConfigObj ? >> > > Hmmm... I prefer defaults, which obviously doesn't meet all use cases. > I'm not sure about this - there are lots of (over the years) different > feature requests for cross-referencing, including files, a heirarchy > of config files and so on. No single proposal strikes me as > particularly elegant nor meets *all* the use cases. > > I'm open to patches (with tests and documentation of course), but this > isn't an itch I particularly feel like scratching myself. No problem, I'll handle and report here once i find some time to investigate configobj! ;) > All the best, > > Michael Foord > Cheers, E -- Etienne Robillard Software developer Green Tea Hackers Club E-mail: er...@gt... Work phone: (514) 962-7703 Website: https://gthc.org/ During times of universal deceit, telling the truth becomes a revolutionary act. -- George Orwell |
|
From: Michael F. <fuz...@vo...> - 2010-06-22 02:12:12
|
On 21/06/2010 11:35, Etienne Robillard wrote: > Hi, > > would there be any way to include config files from within > a config section ? > > I would like doing the following: > > [item1] > include path/to/item1.ini > > Configobj doesn't currently include any way to "include" sub config files - although it does have programmatic support for merging them (see the merge method). > Although this seems to break the current RFC-822 rule > Configobj isn't bound by rfc-822 anyway. :-) > for config files section as this statement is missing the equal > syntax control block. However, this would be a great way > to make ConfigObj even more powerful; allowing config items to recycle > common config items. Would there be a better way to include shared > config items with ConfigObj ? > Hmmm... I prefer defaults, which obviously doesn't meet all use cases. I'm not sure about this - there are lots of (over the years) different feature requests for cross-referencing, including files, a heirarchy of config files and so on. No single proposal strikes me as particularly elegant nor meets *all* the use cases. I'm open to patches (with tests and documentation of course), but this isn't an itch I particularly feel like scratching myself. All the best, Michael Foord > Much thanks in advance, > > Etienne > > -- http://www.ironpythoninaction.com/ http://www.voidspace.org.uk/blog READ CAREFULLY. By accepting and reading this email you agree, on behalf of your employer, to release me from all obligations and waivers arising from any and all NON-NEGOTIATED agreements, licenses, terms-of-service, shrinkwrap, clickwrap, browsewrap, confidentiality, non-disclosure, non-compete and acceptable use policies (”BOGUS AGREEMENTS”) that I have entered into with your employer, its partners, licensors, agents and assigns, in perpetuity, without prejudice to my ongoing rights and privileges. You further represent that you have the authority to release me from any BOGUS AGREEMENTS on behalf of your employer. |
|
From: Etienne R. <er...@gt...> - 2010-06-21 11:26:59
|
Hi, would there be any way to include config files from within a config section ? I would like doing the following: [item1] include path/to/item1.ini Although this seems to break the current RFC-822 rule for config files section as this statement is missing the equal syntax control block. However, this would be a great way to make ConfigObj even more powerful; allowing config items to recycle common config items. Would there be a better way to include shared config items with ConfigObj ? Much thanks in advance, Etienne -- Etienne Robillard Software developer Green Tea Hackers Club E-mail: er...@gt... Work phone: (514) 962-7703 Website: https://gthc.org/ During times of universal deceit, telling the truth becomes a revolutionary act. -- George Orwell |
|
From: Michael F. <fuz...@vo...> - 2010-05-31 00:35:07
|
On 28/05/2010 18:30, francisco.martin wrote: > Hi All, > > is there a way to put a list in multiple lines (to help reading). > > May be something like this: > > MultilineList = (element 1, element 2, element 3, > element 4, element 6, element 7) > I'm afraid not. It's a good suggestion, but would be very hard to implement in the parser. All the best, Michael Foord > > Thanks in advance, > xiscu > > ------------------------------------------------------------------------------ > > _______________________________________________ > Configobj-develop mailing list > Con...@li... > https://lists.sourceforge.net/lists/listinfo/configobj-develop > -- http://www.ironpythoninaction.com/ http://www.voidspace.org.uk/blog READ CAREFULLY. By accepting and reading this email you agree, on behalf of your employer, to release me from all obligations and waivers arising from any and all NON-NEGOTIATED agreements, licenses, terms-of-service, shrinkwrap, clickwrap, browsewrap, confidentiality, non-disclosure, non-compete and acceptable use policies (”BOGUS AGREEMENTS”) that I have entered into with your employer, its partners, licensors, agents and assigns, in perpetuity, without prejudice to my ongoing rights and privileges. You further represent that you have the authority to release me from any BOGUS AGREEMENTS on behalf of your employer. |
|
From: francisco.martin <fra...@we...> - 2010-05-28 17:31:31
|
Hi All,
is there a way to put a list in multiple lines (to help reading).
May be something like this:
MultilineList = (element 1, element 2, element 3,
element 4, element 6, element 7)
Thanks in advance,
xiscu
|
|
From: Michael F. <fuz...@vo...> - 2010-04-04 21:42:56
|
On 02/04/2010 00:50, Chris Jones wrote:
> Hey
>
> Is it possible to disable inline comments (for both reading and writing
> configs)? I have no particular desire to support them in my config
> files, but I would like to be able to have html style colour codes
> without quoting.
>
> Cheers,
>
Hi Chris,
Well if you use '_inspec=True' in the constructor it switches off inline
comment parsing - but that is for parsing configspecs and I wouldn't
necessarily guarantee to support it forever in the future...
>>> import configobj
>>> c = configobj.ConfigObj(['foo = hello # bar'], _inspec=True)
>>> c
ConfigObj({'foo': 'hello # bar'})
All the best,
Michael Foord
--
http://www.ironpythoninaction.com/
http://www.voidspace.org.uk/blog
READ CAREFULLY. By accepting and reading this email you agree, on behalf of your employer, to release me from all obligations and waivers arising from any and all NON-NEGOTIATED agreements, licenses, terms-of-service, shrinkwrap, clickwrap, browsewrap, confidentiality, non-disclosure, non-compete and acceptable use policies (”BOGUS AGREEMENTS”) that I have entered into with your employer, its partners, licensors, agents and assigns, in perpetuity, without prejudice to my ongoing rights and privileges. You further represent that you have the authority to release me from any BOGUS AGREEMENTS on behalf of your employer.
|
|
From: Michael F. <fuz...@vo...> - 2010-04-04 21:33:18
|
On 01/04/2010 02:04, Mohanaraj Gopala Krishnan wrote:
> [snip...]
>> and get the follwing result
>> 3 items had failures:
>> 2 of 7 in configobj.Section.as_int
>> 1 of 6 in configobj.Section.merge
>> 2 of 6 in configobj.Section.walk
>> ***Test Failed*** 5 failures.
>> However I get these same results when I try to run the tests before applying my patch.
>> Any advice ?
>>
>> Hmm... What version of Python are you using and what operating system? Can you show the actual test failures (the results), thanks.
>>
> I use Ubuntu 9.10, python version 2.6.4 , from the distributions repository.
> I have attached the complete test results, when I run "python
> test_configobj.py".
>
The test failures you posted make me think you aren't running the tests
against the most recent version of ConfigObj. For example:
'ConfigObj' object has no attribute 'as_list'
If I try this:
>>> import configobj
>>> configobj.__version__
'4.7.2'
>>> c = configobj.ConfigObj()
>>> c.as_list
<bound method ConfigObj.as_list of ConfigObj({})>
All the best,
Michael
> <snip>
>
>
>
> ------------------------------------------------------------------------------
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
>
>
> _______________________________________________
> Configobj-develop mailing list
> Con...@li...
> https://lists.sourceforge.net/lists/listinfo/configobj-develop
>
--
http://www.ironpythoninaction.com/
http://www.voidspace.org.uk/blog
READ CAREFULLY. By accepting and reading this email you agree, on behalf of your employer, to release me from all obligations and waivers arising from any and all NON-NEGOTIATED agreements, licenses, terms-of-service, shrinkwrap, clickwrap, browsewrap, confidentiality, non-disclosure, non-compete and acceptable use policies ("BOGUS AGREEMENTS") that I have entered into with your employer, its partners, licensors, agents and assigns, in perpetuity, without prejudice to my ongoing rights and privileges. You further represent that you have the authority to release me from any BOGUS AGREEMENTS on behalf of your employer.
|
|
From: Chris J. <cm...@te...> - 2010-04-01 23:51:01
|
Hey Is it possible to disable inline comments (for both reading and writing configs)? I have no particular desire to support them in my config files, but I would like to be able to have html style colour codes without quoting. Cheers, -- Chris Jones cm...@te... www.tenshu.net |
|
From: Mohanaraj G. K. <mo...@gm...> - 2010-04-01 01:04:42
|
On Wed, Mar 31, 2010 at 8:19 PM, Michael Foord <fuz...@vo...> wrote: > > On 31/03/2010 02:04, Mohanaraj Gopala Krishnan wrote: > > Is there someplace I can refer to get an idea as to how to run the tests. I have done > cd configobj-4.7.2/tests > python test_configobj.py > > That runs most of the tests. There are some unit tests as well. I use unittest2 test discovery (the discover module should work as well - both are on PyPI) to run these. Ok I will try those modules out thanks! > > and get the follwing result > 3 items had failures: > 2 of 7 in configobj.Section.as_int > 1 of 6 in configobj.Section.merge > 2 of 6 in configobj.Section.walk > ***Test Failed*** 5 failures. > However I get these same results when I try to run the tests before applying my patch. > Any advice ? > > Hmm... What version of Python are you using and what operating system? Can you show the actual test failures (the results), thanks. I use Ubuntu 9.10, python version 2.6.4 , from the distributions repository. I have attached the complete test results, when I run "python test_configobj.py". <snip> |
|
From: Michael F. <fuz...@vo...> - 2010-03-31 12:38:24
|
On 31/03/2010 02:04, Mohanaraj Gopala Krishnan wrote:
> Is there someplace I can refer to get an idea as to how to run the
> tests. I have done
>
> cd configobj-4.7.2/tests
> python test_configobj.py
>
That runs most of the tests. There are some unit tests as well. I use
unittest2 test discovery (the discover module should work as well - both
are on PyPI) to run these.
> and get the follwing result
>
> 3 items had failures:
> 2 of 7 in configobj.Section.as_int
> 1 of 6 in configobj.Section.merge
> 2 of 6 in configobj.Section.walk
> ***Test Failed*** 5 failures.
>
> However I get these same results when I try to run the tests before
> applying my patch.
>
> Any advice ?
>
Hmm... What version of Python are you using and what operating system?
Can you show the actual test failures (the results), thanks.
Michael
> Mohan
>
>
>
> On Tue, Mar 30, 2010 at 10:09 PM, Michael Foord
> <fuz...@vo... <mailto:fuz...@vo...>> wrote:
>
> Hi Mohanaraj,
>
> Do the tests still pass with your patch applied? For a patch to be
> considered it should include tests for the new behavior and
> preferably a docs patch as well. :-)
>
> All the best,
>
> Michael Foord
>
>
> On 29/03/2010 13:18, Mohanaraj Gopala Krishnan wrote:
>> Hi guys,
>>
>> I have been trying to come up with a config file that look as follows
>>
>> --
>> log_dir = '/var/log'
>> oltp_host = localhost
>> olap_host = $oltp_host
>>
>> [app]
>> log_dir = ${log_dir}/app
>> oltp_host = $oltp_host
>> olap_host = $olap_host
>> --
>> And access it with the following trivial code:
>>
>> --
>> import configobj
>> from configobj import ConfigObj
>> configobj.DEFAULT_INTERPOLATION ='Template'
>> a = ConfigObj('./config.ini')
>> print a
>> --
>>
>> However when i try to access it with the following code I get
>> "configobj.InterpolationLoopError: interpolation loop detected
>> in value "log_dir". "
>>
>> Looking at the code it seems to be because of the common names. I
>> have implemented a naive hack that will allow for params to have
>> the same names as their values, by ensuring that they don't end
>> up referencing to themselves. I realise that this is not a
>> complete fix and there are still cases where this will break
>> down, but I would just like to know what you guys think ? I have
>> attached the patch to this email.
>>
>> Thanks
>>
>>
>> --
>>
>> Mohanaraj
>>
>>
>> ------------------------------------------------------------------------------
>> Download Intel® Parallel Studio Eval
>> Try the new software tools for yourself. Speed compiling, find bugs
>> proactively, and fine-tune applications for parallel performance.
>> See why Intel Parallel Studio got high marks during beta.
>> http://p.sf.net/sfu/intel-sw-dev
>>
>>
>> _______________________________________________
>> Configobj-develop mailing list
>> Con...@li... <mailto:Con...@li...>
>> https://lists.sourceforge.net/lists/listinfo/configobj-develop
>>
>
>
> --
> http://www.ironpythoninaction.com/
>
>
>
>
> --
>
> Mohanaraj
> http://mohangk.org/blog
--
http://www.ironpythoninaction.com/
http://www.voidspace.org.uk/blog
READ CAREFULLY. By accepting and reading this email you agree, on behalf of your employer, to release me from all obligations and waivers arising from any and all NON-NEGOTIATED agreements, licenses, terms-of-service, shrinkwrap, clickwrap, browsewrap, confidentiality, non-disclosure, non-compete and acceptable use policies ("BOGUS AGREEMENTS") that I have entered into with your employer, its partners, licensors, agents and assigns, in perpetuity, without prejudice to my ongoing rights and privileges. You further represent that you have the authority to release me from any BOGUS AGREEMENTS on behalf of your employer.
|
|
From: Mohanaraj G. K. <mo...@gm...> - 2010-03-31 01:04:49
|
Is there someplace I can refer to get an idea as to how to run the tests. I
have done
cd configobj-4.7.2/tests
python test_configobj.py
and get the follwing result
3 items had failures:
2 of 7 in configobj.Section.as_int
1 of 6 in configobj.Section.merge
2 of 6 in configobj.Section.walk
***Test Failed*** 5 failures.
However I get these same results when I try to run the tests before applying
my patch.
Any advice ?
Mohan
On Tue, Mar 30, 2010 at 10:09 PM, Michael Foord
<fuz...@vo...>wrote:
> Hi Mohanaraj,
>
> Do the tests still pass with your patch applied? For a patch to be
> considered it should include tests for the new behavior and preferably a
> docs patch as well. :-)
>
> All the best,
>
> Michael Foord
>
>
> On 29/03/2010 13:18, Mohanaraj Gopala Krishnan wrote:
>
> Hi guys,
>
> I have been trying to come up with a config file that look as follows
>
> --
> log_dir = '/var/log'
> oltp_host = localhost
> olap_host = $oltp_host
>
> [app]
> log_dir = ${log_dir}/app
> oltp_host = $oltp_host
> olap_host = $olap_host
> --
> And access it with the following trivial code:
>
> --
> import configobj
> from configobj import ConfigObj
> configobj.DEFAULT_INTERPOLATION ='Template'
> a = ConfigObj('./config.ini')
> print a
> --
>
> However when i try to access it with the following code I get
> "configobj.InterpolationLoopError: interpolation loop detected in value
> "log_dir". "
>
> Looking at the code it seems to be because of the common names. I have
> implemented a naive hack that will allow for params to have the same names
> as their values, by ensuring that they don't end up referencing to
> themselves. I realise that this is not a complete fix and there are still
> cases where this will break down, but I would just like to know what you
> guys think ? I have attached the patch to this email.
>
> Thanks
>
>
> --
>
> Mohanaraj
>
>
> ------------------------------------------------------------------------------
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.http://p.sf.net/sfu/intel-sw-dev
>
>
> _______________________________________________
> Configobj-develop mailing lis...@li...://lists.sourceforge.net/lists/listinfo/configobj-develop
>
>
>
> -- http://www.ironpythoninaction.com/
>
>
--
Mohanaraj
http://mohangk.org/blog
|
|
From: Michael F. <fuz...@vo...> - 2010-03-30 14:09:28
|
Hi Mohanaraj,
Do the tests still pass with your patch applied? For a patch to be
considered it should include tests for the new behavior and preferably a
docs patch as well. :-)
All the best,
Michael Foord
On 29/03/2010 13:18, Mohanaraj Gopala Krishnan wrote:
> Hi guys,
>
> I have been trying to come up with a config file that look as follows
>
> --
> log_dir = '/var/log'
> oltp_host = localhost
> olap_host = $oltp_host
>
> [app]
> log_dir = ${log_dir}/app
> oltp_host = $oltp_host
> olap_host = $olap_host
> --
> And access it with the following trivial code:
>
> --
> import configobj
> from configobj import ConfigObj
> configobj.DEFAULT_INTERPOLATION ='Template'
> a = ConfigObj('./config.ini')
> print a
> --
>
> However when i try to access it with the following code I get
> "configobj.InterpolationLoopError: interpolation loop detected in
> value "log_dir". "
>
> Looking at the code it seems to be because of the common names. I have
> implemented a naive hack that will allow for params to have the same
> names as their values, by ensuring that they don't end up referencing
> to themselves. I realise that this is not a complete fix and there are
> still cases where this will break down, but I would just like to know
> what you guys think ? I have attached the patch to this email.
>
> Thanks
>
>
> --
>
> Mohanaraj
>
>
> ------------------------------------------------------------------------------
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
>
>
> _______________________________________________
> Configobj-develop mailing list
> Con...@li...
> https://lists.sourceforge.net/lists/listinfo/configobj-develop
>
--
http://www.ironpythoninaction.com/
|
|
From: Mohanaraj G. K. <mo...@gm...> - 2010-03-29 12:43:23
|
Hi guys,
I have been trying to come up with a config file that look as follows
--
log_dir = '/var/log'
oltp_host = localhost
olap_host = $oltp_host
[app]
log_dir = ${log_dir}/app
oltp_host = $oltp_host
olap_host = $olap_host
--
And access it with the following trivial code:
--
import configobj
from configobj import ConfigObj
configobj.DEFAULT_INTERPOLATION ='Template'
a = ConfigObj('./config.ini')
print a
--
However when i try to access it with the following code I get
"configobj.InterpolationLoopError: interpolation loop detected in value
"log_dir". "
Looking at the code it seems to be because of the common names. I have
implemented a naive hack that will allow for params to have the same names
as their values, by ensuring that they don't end up referencing to
themselves. I realise that this is not a complete fix and there are still
cases where this will break down, but I would just like to know what you
guys think ? I have attached the patch to this email.
Thanks
--
Mohanaraj
|