X-Git-Url: https://git.phdru.name/?p=bookmarks_db.git;a=blobdiff_plain;f=set-title-list.py;h=2fb37eccb838b43fdde557435528719252615680;hp=34a4abbf83a4766fcaab1c0ef78250b7824010e8;hb=53d4a2383cfef1310871eefcc14e6e1950b96853;hpb=9edef5a570ea28f7c06d8d92fdd70afe0ea86809 diff --git a/set-title-list.py b/set-title-list.py index 34a4abb..2fb37ec 100755 --- a/set-title-list.py +++ b/set-title-list.py @@ -1,10 +1,12 @@ #! /usr/bin/env python -""" - Run through the bookmarks database and set names to titles from an external file +"""Run through the bookmarks database and set names to titles from an external file - Written by BroytMann, May 2003 - May 2003. Copyright (C) 2003 PhiloSoft Design +This file is a part of Bookmarks database and Internet robot. """ +__author__ = "Oleg Broytman " +__copyright__ = "Copyright (C) 2003-2012 PhiloSoft Design" +__license__ = "GNU GPL" import sys @@ -24,7 +26,7 @@ def run(): pass if report_stats: - print "BroytMann set-title-list, Copyright (C) 2003 PhiloSoft Design" + print "Broytman set-title-list, Copyright (C) 2003-2007 PhiloSoft Design" if len(args) <> 1: sys.stderr.write("Usage: set-title-list [-s] title_list_file\n") @@ -71,7 +73,7 @@ def run(): sys.stdout.flush() root_folder = storage.load() - from bkmk_objects import make_linear + from bkmk_objects import make_linear, break_tree make_linear(root_folder) objects = len(root_folder.linear) @@ -102,6 +104,7 @@ def run(): sys.stdout.flush() if changed: + break_tree(root_folder.linear) storage.store(root_folder) if changed and report_stats: