Re: help with designing an app. based on ConfigParser

2006-04-06 Thread Fuzzyman
Alexandre CONRAD wrote: [snip..] > > So I told my self, the best way would be able to have a "sub-section". I > could then look for all servers (aka sub-sections) inside [UPDATE > SERVERS] and retrieve the needed info. But AFAIK, it's not possible > having sub-sections with ConfigParser. So I'm he

Re: help with designing an app. based on ConfigParser

2006-04-06 Thread Fredrik Lundh
Alexandre CONRAD wrote: > But now, how do I hold multiple servers ? In this case, I thought about > having multiple sections such as > > [SERVER 01] > [SERVER 02] > [SERVER 03] > > But it's not very efficient when I want to parse the WHOLE config file > to find which servers are available an

help with designing an app. based on ConfigParser

2006-04-06 Thread Alexandre CONRAD
Hello list ! I'm using the ConfigParser module to use configuration files (what else would it be for ?). But I have a dilema: I'd like to setup multiple "update server" for my application with update "priority". At first, I thought about adding a new section in my actual existing config file s