]> git.phdru.name Git - bookmarks_db.git/commitdiff
Fixed a bug in handling "place:" URLs -- do not add "//".
authorOleg Broytman <phd@phdru.name>
Fri, 21 Sep 2012 22:54:58 +0000 (22:54 +0000)
committerOleg Broytman <phd@phdru.name>
Fri, 21 Sep 2012 22:54:58 +0000 (22:54 +0000)
git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@362 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

bkmk_objects.py

index 9627e6516a75af1fbb0b19d879a843ab5c1f383b..23fb816ee180100100722ee2b7ac9818cf63390d 100644 (file)
@@ -1,6 +1,7 @@
 """Objects to represent bookmarks.html structure
 
 This file is a part of Bookmarks database and Internet robot.
+
 """
 
 __author__ = "Oleg Broytman <phd@phdru.name>"
@@ -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: