X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=bkmk_objects.py;h=23fb816ee180100100722ee2b7ac9818cf63390d;hb=d9360788a641b5b1184a2523881e950bab7d7c66;hp=9627e6516a75af1fbb0b19d879a843ab5c1f383b;hpb=71712390f4edb041609ff7bc9272d12a5c1a9b1d;p=bookmarks_db.git diff --git a/bkmk_objects.py b/bkmk_objects.py index 9627e65..23fb816 100644 --- a/bkmk_objects.py +++ b/bkmk_objects.py @@ -1,6 +1,7 @@ """Objects to represent bookmarks.html structure This file is a part of Bookmarks database and Internet robot. + """ __author__ = "Oleg Broytman " @@ -65,7 +66,10 @@ class Bookmark: host, port = urllib.splitport(host) if port: port = int(port) - href = protocol + "://" + if protocol == 'place': + href = protocol + ":" + else: + href = protocol + "://" if user: href += urllib.quote(user) if password: