diff options
author | Trent Lloyd <lathiat@bur.st> | 2005-08-30 16:22:42 +0000 |
---|---|---|
committer | Trent Lloyd <lathiat@bur.st> | 2005-08-30 16:22:42 +0000 |
commit | 068ac4c5af4acfc00c385af7f144305978efbba9 (patch) | |
tree | 374f1dcf755552eefceacf4fe6acbe64ce6df345 /avahi-utils/avahi-bookmarks.in | |
parent | 3701706c65de0f0b5f652b0cd37670c03800b4a2 (diff) |
* This should solve the avahi-bookmarks and checking for python modules problems more elegantly
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@504 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'avahi-utils/avahi-bookmarks.in')
-rwxr-xr-x | avahi-utils/avahi-bookmarks.in | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/avahi-utils/avahi-bookmarks.in b/avahi-utils/avahi-bookmarks.in index 39c1d8c..ac8d3da 100755 --- a/avahi-utils/avahi-bookmarks.in +++ b/avahi-utils/avahi-bookmarks.in @@ -74,7 +74,10 @@ class AvahiBookmarks(resource.Resource): for k in l: if k[:5] == "path=": - return k[5:] + if k[5]: + return "/" + k[5:] + else + return k[5:] return "/" @@ -101,7 +104,7 @@ class AvahiBookmarks(resource.Resource): else: ip = v[2] - t += '<li><a href="%s://%s%s/%s">%s</a></li>' % (urlproto[k[3]], ip, port, path, k[2]) + t += '<li><a href="%s://%s%s%s">%s</a></li>' % (urlproto[k[4]], ip, port, path, k[2]) t += '</ul>' |