[tahoe-dev] tahoemenu.py - ConfigParser write method removes comments?

Daira Hopwood davidsarah at leastauthority.com
Tue Oct 22 21:10:11 UTC 2013


On 22/10/13 07:24, Garonda Rodian wrote:
> Thank you for the comments - the menu system is indeed in that category, in that it is
> explicitly designed to both insulate the user from hand-editing config files, and to
> automate repetitive edits (copy the introducer furl to each of N nodes, increment the port
> used by multiple nodes on the same box, share a specific convergence key, etc. etc.). 
> Hand editing is intimidating for new users, and very tedious for setting up anything but
> the smallest test grid, especially for those of us who hate dynamic ports in general :).
> 
> The menu system will only make changes that the user would make - mostly tahoe.cfg, but
> also the convergence secret, for example, if shared convergence is desired (coming soon!).

I suggest <http://www.voidspace.org.uk/python/configobj.html>. I haven't used it but it
seems to do what you want, including preserving comments and ordering.

-- 
Daira Hopwood ⚥

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 555 bytes
Desc: OpenPGP digital signature
URL: <http://tahoe-lafs.org/pipermail/tahoe-dev/attachments/20131022/f112fefc/attachment.pgp>


More information about the tahoe-dev mailing list