On Tue, Aug 11, 2009 at 4:03 AM, alind<[email protected]> wrote:
>
> After some more searching I found a library python-configobj
> http://www.voidspace.org.uk/python/configobj.html#downloading
> Am I suppose to use some other thing.
> IMHO this will work fine for me.
> Thanks.
>
> On Aug 11, 12:42 pm, alind sharma <[email protected]> wrote:
>> I want to edit trac.ini using python/shell. Whats the best way to do it.
>> Want something like I should be able to read trac.ini into some sort of 
>> dictionary/list, check if some option is present in the dictionary, and edit 
>> its value. There are some options that I want to add like
>> track.hg* = enabled,
>> webauth plugin = disbaled
>> webadming = enabled
>> etc. If something like this is already present then it will be fine, 
>> otherwise i will write one myself. Can anybody guide me towards the best way 
>> of achieving this. Thanks in advance.
>>
>>  Alind Sharma

Why bother? If you already have Trac, just use what Trac uses: from
trac.config import Configuration.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to