[avahi] avahi-discover patch which add a connect button to start a client with a discovered web or ssh service

Claus Klein claus.klein at arcormail.de
Sat Mar 25 15:22:06 PST 2006


Hi,

I have extented the python script with to buttons: connect and quit

Too I have tried to prevent some warnings: 

PYTHONVER=2.4 pychecker avahi-discover.py >> avahi-discover.warn

Warnings...

/usr/lib/python2.4/site-packages/avahi/SimpleGladeApp.py:92: Local variable (glade_dir) shadows global defined on line 43 in file avahi-discover.py
/usr/lib/python2.4/site-packages/avahi/SimpleGladeApp.py:93: Local variable (glade_dir) shadows global defined on line 43 in file avahi-discover.py
/usr/lib/python2.4/site-packages/avahi/SimpleGladeApp.py:114: (repr) shadows builtin
/usr/lib/python2.4/site-packages/avahi/SimpleGladeApp.py:116: (repr) shadows builtin
/usr/lib/python2.4/site-packages/avahi/SimpleGladeApp.py:200: Parameter (glade) not used
/usr/lib/python2.4/site-packages/avahi/SimpleGladeApp.py:200: Parameter (widget_name) not used
/usr/lib/python2.4/site-packages/avahi/SimpleGladeApp.py:223: Parameter (args) not used
/usr/lib/python2.4/site-packages/avahi/SimpleGladeApp.py:231: Parameter (args) not used
/usr/lib/python2.4/site-packages/avahi/SimpleGladeApp.py:239: Parameter (args) not used
/usr/lib/python2.4/site-packages/avahi/SimpleGladeApp.py:247: Parameter (args) not used
/usr/lib/python2.4/site-packages/avahi/SimpleGladeApp.py:255: Parameter (args) not used
/usr/lib/python2.4/site-packages/avahi/SimpleGladeApp.py:255: Parameter (window) not used
/usr/lib/python2.4/site-packages/avahi/SimpleGladeApp.py:261: No global (widget) found
/usr/lib/python2.4/site-packages/avahi/SimpleGladeApp.py:278: Parameter (args) not used
/usr/lib/python2.4/site-packages/avahi/SimpleGladeApp.py:334: Parameter (glade_path) not used

avahi-discover.py:53: Parameter (args) not used
avahi-discover.py:53: Parameter (widget) not used
avahi-discover.py:58: No module attribute (startfile) found
avahi-discover.py:70: No class attribute (info_label) found
avahi-discover.py:72: Parameter (args) not used
avahi-discover.py:73: (iter) shadows builtin
avahi-discover.py:79: No class attribute (info_label) found
avahi-discover.py:103: Function (service_resolved) has too many arguments (12)
avahi-discover.py:103: Parameter (flags) not used
avahi-discover.py:126: No class attribute (info_label) found
avahi-discover.py:137: Parameter (flags) not used
avahi-discover.py:139: Comparisons with False are not necessary and may not work as expected
avahi-discover.py:144: Comparisons with False are not necessary and may not work as expected
avahi-discover.py:146: Comparisons with False are not necessary and may not work as expected
avahi-discover.py:152: No class attribute (tree_view) found
avahi-discover.py:154: Parameter (flags) not used
avahi-discover.py:156: No class attribute (info_label) found
avahi-discover.py:161: Comparisons with False are not necessary and may not work as expected
avahi-discover.py:166: Comparisons with False are not necessary and may not work as expected
avahi-discover.py:171: Comparisons with False are not necessary and may not work as expected
avahi-discover.py:177: Parameter (flags) not used
avahi-discover.py:207: No global (new_service_type) found
avahi-discover.py:207: No global (stype) found
avahi-discover.py:209: Parameter (flags) not used
avahi-discover.py:210: Comparisons with False are not necessary and may not work as expected
avahi-discover.py:213: Comparisons with False are not necessary and may not work as expected
avahi-discover.py:230: Function (update_label) has too many arguments (11)
avahi-discover.py:230: Parameter (aprotocol) not used
avahi-discover.py:240: No class attribute (info_label) found
avahi-discover.py:251: No class attribute (tree_view) found
avahi-discover.py:254: No class attribute (tree_view) found
avahi-discover.py:260: No class attribute (tree_view) found
avahi-discover.py:284: No global (domain) found

klein at DEBK1919:~/py$ 

And I added a optional command line argument domain name to parse.

If you find it a goot idea, please check it in.

claus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: avahi-discover.patch
Type: text/x-diff
Size: 15564 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/avahi/attachments/20060326/088a53fd/avahi-discover.bin


More information about the avahi mailing list