-"""
- Bookmarks storage manager - pickle; certainly the most simple and elegant :)
+"""Bookmarks storage manager - pickle; certainly the most simple and elegant :)
+
+This file is a part of Bookmarks database and Internet robot.
- Written by Broytman, Feb 2000 - Mar 2000. Copyright (C) 2000 PhiloSoft Design
"""
+__author__ = "Oleg Broytman <phd@phdru.name>"
+__copyright__ = "Copyright (C) 2000-2014 PhiloSoft Design"
+__license__ = "GNU GPL"
+
+__all__ = ['storage_pickle']
+
try:
import cPickle
import pickle
-class storage_pickle:
+class storage_pickle(object):
filename = "bookmarks_db.pickle"
-
def store(self, root_folder):
outfile = open(self.filename, 'wb')
pickle.dump(root_folder, outfile, 1)
outfile.close()
-
def load(self):
infile = open(self.filename, 'rb')
root_folder = pickle.load(infile)