1 """Bookmarks storage manager - pickle; certainly the most simple and elegant :)
3 This file is a part of Bookmarks database and Internet robot.
7 __author__ = "Oleg Broytman <phd@phdru.name>"
8 __copyright__ = "Copyright (C) 2000-2017 PhiloSoft Design"
9 __license__ = "GNU GPL"
11 __all__ = ['storage_pickle']
22 class storage_pickle(object):
23 filename = "bookmarks_db.pickle"
25 def store(self, root_folder):
26 outfile = open(self.filename, 'wb')
27 pickle.dump(root_folder, outfile, 1)
31 infile = open(self.filename, 'rb')
32 root_folder = pickle.load(infile)