[avahi] pygtk

Sebastien Estienne sebastien.estienne at gmail.com
Sat Aug 6 02:35:13 EST 2005


2005/8/5, Lennart Poettering <lennart at poettering.de>:
> On Fri, 05.08.05 16:18, Sebastien Estienne (sebastien.estienne at gmail.com) wrote:
> 
> > >
> > > (for the services themselves this shouldn't be needed, though)
> > I thought about using info from
> > http://www.dns-sd.org/ServiceTypes.html
> > do display human readable service name
> 
> Nice idea. This pipeline should generate a cleaned up database file
> for you:
> 
> curl -s http://www.dns-sd.org/ServiceTypes.html |
>      tr '\r' '\n' |
>      awk '/^<b>(.*)<\/b>/{sub(/<b>/, "");sub(/<\/b> */, " : ");print}'
> 
> AWK rulez.
u too
> 
> You could probably extend this command line so that it generates a python
> dictionary from the data. Than, make this to a makefile target so that one
> can easily update the database later on.
> 
> > BTW it was on my todo to make it more stetic and user friendly.
> 
> "stetic"?
esthetic :)
> 
> Lennart
> 
> --
> Lennart Poettering; lennart [at] poettering [dot] de
> ICQ# 11060553; GPG 0x1A015CC4; http://0pointer.de/lennart/
> _______________________________________________
> avahi mailing list
> avahi at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/avahi
> 


-- 
Sebastien Estienne


More information about the avahi mailing list