Re: python-gmenu and multiple languages



On Mon, 2009-02-09 at 15:52 +0100, Gian Mario Tagliaretti wrote:
> On Mon, Feb 9, 2009 at 3:35 PM, Vincent Untz <vuntz gnome org> wrote:
> 
> > In python, it's similar, except that I think the GKeyFile API is not
> > available in the bindings. But you have the ConfigParser stuff, iirc.
> 
> that's right Vincent, we don't have GKeyFile wrapped in pygobject
> (glib module), btw I'm seeing more and more functions into Glib and
> GTK+ that use GKeyFile APIs, maybe at one point will make sense to
> wrap them as well.

It would be really nice to have GKeyFile wrapped.  ConfigParser
isn't made for fd.o key files, and there are things it does
differently.  Notably, it doesn't handle translated keys.

I have a key file parser based on ConfigParser in Pulse:

http://gitorious.com/projects/pulse/repos/mainline/blobs/master/pulse/parsers.py

It's not a perfect implementation, but it doesn't a decent
job for what Pulse needs.  Until GKeyFile is available in
our Python bindings, people should feel free to steal that
code if they find it useful.

--
Shaun





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]