]> git.phdru.name Git - bookmarks_db.git/blobdiff - Storage/bkmk_stflad.py
Minor refactoring
[bookmarks_db.git] / Storage / bkmk_stflad.py
index 9bd8751c278b9fa6becbee0d552455a43049c8de..5b72b850d94208c6dfc4e060cf02bbb26cd06248 100644 (file)
@@ -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 Broytman. Copyright (C) 2000-2010 PhiloSoft Design
+This file is a part of Bookmarks database and Internet robot.
 """
 
+__author__ = "Oleg Broytman <phd@phdru.name>"
+__copyright__ = "Copyright (C) 2000-2012 PhiloSoft Design"
+__license__ = "GNU GPL"
+
+__all__ = ['storage_flad']
+
 
 import string
 from m_lib.flad import fladm
@@ -52,17 +58,14 @@ Charset: %s
          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