"""Bookmarks storage manager - pickle; certainly the most simple and elegant :)
This file is a part of Bookmarks database and Internet robot.
+
"""
__author__ = "Oleg Broytman <phd@phdru.name>"
-__copyright__ = "Copyright (C) 2000-2012 PhiloSoft Design"
+__copyright__ = "Copyright (C) 2000-2014 PhiloSoft Design"
__license__ = "GNU GPL"
__all__ = ['storage_pickle']
import pickle
-class storage_pickle:
+class storage_pickle(object):
filename = "bookmarks_db.pickle"
def store(self, root_folder):
"""
__author__ = "Oleg Broytman <phd@phdru.name>"
-__copyright__ = "Copyright (C) 2000-2012 PhiloSoft Design"
+__copyright__ = "Copyright (C) 2000-2014 PhiloSoft Design"
__license__ = "GNU GPL"
__all__ = ['Folder', 'Bookmark', 'Ruler', 'Walker', 'Writer', 'Robot',
walker.end_folder(self, level)
-class Bookmark:
+class Bookmark(object):
isFolder = 0
isBookmark = 1
self.charset = charset
-class Ruler:
+class Ruler(object):
isFolder = 0
isBookmark = 0
-class Walker:
+class Walker(object):
"""
Interface class. Any instance that will be passed to Folder.walk_depth
may be derived from this class. It is not mandatory - unlike Java
return self.prune == folder.name
-class Robot:
+class Robot(object):
def __init__(self, log):
self.log = log
-r - reverse the sort order
This file is a part of Bookmarks database and Internet robot.
+
"""
__author__ = "Oleg Broytman <phd@phdru.name>"
-__copyright__ = "Copyright (C) 2000-2012 PhiloSoft Design"
+__copyright__ = "Copyright (C) 2000-2014 PhiloSoft Design"
__license__ = "GNU GPL"
import sys
-class SortBy:
+class SortBy(object):
def __init__(self, sort_by):
self.sort_by = sort_by