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