X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=Storage%2Fbkmk_stflad.py;h=5b72b850d94208c6dfc4e060cf02bbb26cd06248;hb=53d4a2383cfef1310871eefcc14e6e1950b96853;hp=2545f6d4cdeff4622e28013913b4cce538e161e6;hpb=bcf579e3311f0d9f968338dc419e9a43b48414ba;p=bookmarks_db.git diff --git a/Storage/bkmk_stflad.py b/Storage/bkmk_stflad.py index 2545f6d..5b72b85 100644 --- a/Storage/bkmk_stflad.py +++ b/Storage/bkmk_stflad.py @@ -1,10 +1,16 @@ -""" - Bookmarks storage module - FLAD (Flat ASCII Database) - special version for compatibility with old (version 1) bkmk2db +"""Bookmarks storage module - FLAD (Flat ASCII Database) + +Special version for compatibility with old (version 1) bkmk2db. - Written by BroytMann, Feb 2000 - Mar 2005. Copyright (C) 2000-2005 PhiloSoft Design +This file is a part of Bookmarks database and Internet robot. """ +__author__ = "Oleg Broytman " +__copyright__ = "Copyright (C) 2000-2012 PhiloSoft Design" +__license__ = "GNU GPL" + +__all__ = ['storage_flad'] + import string from m_lib.flad import fladm @@ -45,20 +51,21 @@ LastVisit: %s LastModified: %s Keyword: %s Comment: %s +IconURI: %s +Icon: %s +Charset: %s """ % (level+1, b.name, b.href, b.add_date, b.last_visit, b.last_modified, - b.keyword, b.comment.replace('\n', "\\n"))) - + b.keyword, b.comment.replace('\n', "\\n"), + b.icon_href or '', b.icon or '', b.charset or '')) def ruler(self, r, level): self.outfile.write("\nLevel: %s\nRuler: YES\n" % (level+1)) - def store(self, root_folder): self.outfile = open(self.filename, 'w') root_folder.walk_depth(self) self.outfile.close() - def unindent(self, old_level, new_level): while old_level > new_level: old_level = old_level - 1