[MERGE] Config.get_user_section() API
Lukáš Lalinský
lalinsky at gmail.com
Tue Feb 5 05:57:41 GMT 2008
On Ut, 2008-02-05 at 13:01 +1100, Robert Collins wrote:
> On Tue, 2008-02-05 at 11:25 +1000, Ian Clatworthy wrote:
> > It's true that plugins can create and use their own config files but
> > there are times when reusing the standard config infrastructure by
> > adding new sections works better.
>
> Plugins don't need to create their own config file in the examples that
> have been handed around in the threads to date - see bzr-email for
> instance, or bzr-pqm, or bzr-gtk, or bzr-avahi, or bzr-$PLUGIN.
Well, if they don't want to touch internal bzrlib functions, they need
to. The only way to access non-standard sections in standard bzr config
file is to either use private _get_parser() or instanciate ConfigObj on
it's own. Of course most plugins just use _get_parser(), but having an
public API for accessing it would be a much better solution.
Lukas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Toto je =?ISO-8859-1?Q?digit=E1lne?=
=?ISO-8859-1?Q?_podp=EDsan=E1?= =?UTF-8?Q?_=C4=8Das=C5=A5?=
=?ISO-8859-1?Q?_spr=E1vy?=
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20080205/1ebf9097/attachment.pgp
More information about the bazaar
mailing list