X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=Writers%2Fbkmk_wflad.py;h=189177f56cafc66453c8c45eb2363da79828747e;hb=96e39d55c791326368ff14d538850e14ba5a2c97;hp=ace4e735d20946d00cdb145a6cfb72d2b4f70a67;hpb=29b619793aaf018cb2f6c7feb6d7c5236e319c7e;p=bookmarks_db.git diff --git a/Writers/bkmk_wflad.py b/Writers/bkmk_wflad.py index ace4e73..189177f 100644 --- a/Writers/bkmk_wflad.py +++ b/Writers/bkmk_wflad.py @@ -1,9 +1,14 @@ -""" - Dump bookmarks db to a more readable FLAD after check_urls +"""Dump bookmarks db to a more readable FLat Ascii Database - Written by BroytMann. Copyright (C) 2000-2007 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__ = ['writer_flad'] + import time from bkmk_objects import Writer @@ -23,7 +28,6 @@ class writer_flad(Writer): Writer.__init__(self, outfile, prune) self.first_object = 1 - def start_folder(self, f, level): self.outfile.write(""" Level: %d @@ -31,8 +35,7 @@ Folder: %s AddDate: %s Comment: %s LastModified: %s -""" % (level, f.name, strftime(f.add_date), f.comment, f.last_modified or '')) - +""" % (level, f.name, strftime(f.add_date), f.comment, strftime(f.last_modified))) def bookmark(self, b, level): self.outfile.write(""" @@ -48,7 +51,7 @@ Comment: %s""" % (level+1, b.name, b.href, strftime(b.add_date), strftime(b.last for attr_name, attr_out in (("error", "Error"), ("no_error", "NoError"), ("moved", "Moved"), ("size", "Size"), ("md5", "Md5"), ("real_title", "RealTitle"), ("test_time", "TestTime"), - ("icon", "Icon"), ("charset", "Charset")): + ("icon_href", "IconURI"), ("icon", "Icon"), ("charset", "Charset")): if hasattr(b, attr_name): self.outfile.write("\n%s: %s" % (attr_out, getattr(b, attr_name)))