-VERSION=4.3.1
+#
+# This file is a part of Bookmarks database and Internet robot.
+#
+# __version__ = "$Revision$"[11:-2]
+# __revision__ = "$Id$"[5:-2]
+# __date__ = "$Date$"[7:-2]
+# __author__ = "Oleg Broytman <phd@phdru.name>"
+# __copyright__ = "Copyright (C) 2001-2010 PhiloSoft Design"
+# __license__ = "GNU GPL"
+#
+
+VERSION=4.4.0
EXAMPLE_SHELL=bkmk-add bkmk-add.py bkmk-chk bkmk-publish bkmk-rsync \
bkmk-sort bkmk2db check_title.py check_url.py hotexplode.pl \
-"""
- Forking robot
+"""Forking robot
- Written by Broytman. Copyright (C) 2000-2010 PhiloSoft Design.
+This file is a part of Bookmarks database and Internet robot.
"""
+__version__ = "$Revision$"[11:-2]
+__revision__ = "$Id$"[5:-2]
+__date__ = "$Date$"[7:-2]
+__author__ = "Oleg Broytman <phd@phdru.name>"
+__copyright__ = "Copyright (C) 2000-2011 PhiloSoft Design"
+__license__ = "GNU GPL"
try:
import cPickle
#! /usr/bin/env python
-"""
- Check URL - subprocess for the forking robot
+"""Check URL - subprocess for the forking robot
- Written by Broytman. Copyright (C) 1999-2010 PhiloSoft Design.
+This file is a part of Bookmarks database and Internet robot.
"""
+__version__ = "$Revision$"[11:-2]
+__revision__ = "$Id$"[5:-2]
+__date__ = "$Date$"[7:-2]
+__author__ = "Oleg Broytman <phd@phdru.name>"
+__copyright__ = "Copyright (C) 1999-2011 PhiloSoft Design"
+__license__ = "GNU GPL"
import sys, os
-"""
- Simple, strightforward robot
+"""Simple, strightforward robot
- Written by Oleg Broytman. Copyright (C) 2000-2011 PhiloSoft Design.
+This file is a part of Bookmarks database and Internet robot.
"""
+__version__ = "$Revision$"[11:-2]
+__revision__ = "$Id$"[5:-2]
+__date__ = "$Date$"[7:-2]
+__author__ = "Oleg Broytman <phd@phdru.name>"
+__copyright__ = "Copyright (C) 2000-2011 PhiloSoft Design"
+__license__ = "GNU GPL"
+
import sys, os
import time, urllib
from base64 import b64encode
-"""
- Simple robot with socket's timeout
+"""Simple robot with socket's timeout
- Written by Broytman. Copyright (C) 2000-2011 PhiloSoft Design
+This file is a part of Bookmarks database and Internet robot.
"""
+__version__ = "$Revision$"[11:-2]
+__revision__ = "$Id$"[5:-2]
+__date__ = "$Date$"[7:-2]
+__author__ = "Oleg Broytman <phd@phdru.name>"
+__copyright__ = "Copyright (C) 2000-2011 PhiloSoft Design"
+__license__ = "GNU GPL"
+
import socket
socket.setdefaulttimeout(900)
-"""
- Bookmarks storage module - FLAD (Flat ASCII Database)
- special version for compatibility with old (version 1) bkmk2db
+"""Bookmarks storage module - FLAD (Flat ASCII Database)
+
+Special version for compatibility with old (version 1) bkmk2db.
- Written by Broytman. Copyright (C) 2000-2010 PhiloSoft Design
+This file is a part of Bookmarks database and Internet robot.
"""
+__version__ = "$Revision$"[11:-2]
+__revision__ = "$Id$"[5:-2]
+__date__ = "$Date$"[7:-2]
+__author__ = "Oleg Broytman <phd@phdru.name>"
+__copyright__ = "Copyright (C) 2000-2011 PhiloSoft Design"
+__license__ = "GNU GPL"
import string
from m_lib.flad import fladm
-"""
- Bookmarks storage manager - json.
+"""Bookmarks storage manager - json
- Written by Broytman, Jul 2010. Copyright (C) 2010 PhiloSoft Design
+This file is a part of Bookmarks database and Internet robot.
"""
+__version__ = "$Revision$"[11:-2]
+__revision__ = "$Id$"[5:-2]
+__date__ = "$Date$"[7:-2]
+__author__ = "Oleg Broytman <phd@phdru.name>"
+__copyright__ = "Copyright (C) 2010, 2011 PhiloSoft Design"
+__license__ = "GNU GPL"
try:
import json
-"""
- Bookmarks storage manager - pickle; certainly the most simple and elegant :)
+"""Bookmarks storage manager - pickle; certainly the most simple and elegant :)
- Written by Broytman, Feb 2000 - Mar 2000. Copyright (C) 2000 PhiloSoft Design
+This file is a part of Bookmarks database and Internet robot.
"""
+__version__ = "$Revision$"[11:-2]
+__revision__ = "$Id$"[5:-2]
+__date__ = "$Date$"[7:-2]
+__author__ = "Oleg Broytman <phd@phdru.name>"
+__copyright__ = "Copyright (C) 2000-2011 PhiloSoft Design"
+__license__ = "GNU GPL"
try:
import cPickle
-"""
- Dump bookmarks db to a more readable FLat Ascii Database
+"""Dump bookmarks db to a more readable FLat Ascii Database
- Written by Broytman. Copyright (C) 2000-2010 PhiloSoft Design.
+This file is a part of Bookmarks database and Internet robot.
"""
+__version__ = "$Revision$"[11:-2]
+__revision__ = "$Id$"[5:-2]
+__date__ = "$Date$"[7:-2]
+__author__ = "Oleg Broytman <phd@phdru.name>"
+__copyright__ = "Copyright (C) 2000-2011 PhiloSoft Design"
+__license__ = "GNU GPL"
import time
from bkmk_objects import Writer
-"""
- Dump bookmarks db to a more readable FLAD after check_urls
+"""Dump bookmarks db to a more readable FLAD after check_urls
- Written by Broytman, Oct 2000 - Aug 2004. Copyright (C) 2000-2004 PhiloSoft Design
+This file is a part of Bookmarks database and Internet robot.
"""
+__version__ = "$Revision$"[11:-2]
+__revision__ = "$Id$"[5:-2]
+__date__ = "$Date$"[7:-2]
+__author__ = "Oleg Broytman <phd@phdru.name>"
+__copyright__ = "Copyright (C) 2000-2011 PhiloSoft Design"
+__license__ = "GNU GPL"
import time
from bkmk_wflad import writer_flad
-"""
- Convert a bkmk database back to bookmarks.html
+"""Convert a bkmk database back to bookmarks.html
- Written by Broytman. Copyright (C) 2000-2010 PhiloSoft Design
+This file is a part of Bookmarks database and Internet robot.
"""
+__version__ = "$Revision$"[11:-2]
+__revision__ = "$Id$"[5:-2]
+__date__ = "$Date$"[7:-2]
+__author__ = "Oleg Broytman <phd@phdru.name>"
+__copyright__ = "Copyright (C) 2000-2011 PhiloSoft Design"
+__license__ = "GNU GPL"
+
from bkmk_objects import Writer, BKMK_FORMAT, quote_title
-"""
- Dump a bkmk database to a text file
+"""Dump a bkmk database to a text file
- Written by Broytman. Copyright (C) 2000-2003 PhiloSoft Design
+This file is a part of Bookmarks database and Internet robot.
"""
+__version__ = "$Revision$"[11:-2]
+__revision__ = "$Id$"[5:-2]
+__date__ = "$Date$"[7:-2]
+__author__ = "Oleg Broytman <phd@phdru.name>"
+__copyright__ = "Copyright (C) 2000-2011 PhiloSoft Design"
+__license__ = "GNU GPL"
ind_s = " "*4
#! /bin/sh
+# Add a bookmark directly to the DB
+#
+# This file is a part of Bookmarks database and Internet robot.
+#
+# __version__ = "$Revision$"[11:-2]
+# __revision__ = "$Id$"[5:-2]
+# __date__ = "$Date$"[7:-2]
+# __author__ = "Oleg Broytman <phd@phdru.name>"
+# __copyright__ = "Copyright (C) 2001-2010 PhiloSoft Design"
+# __license__ = "GNU GPL"
PATH=$HOME/lib/bookmarks_db:$PATH
#! /usr/bin/env python
-"""
- Add a bookmark to the database.
+"""Add a bookmark to the database
- Written by Broytman. Copyright (C) 2002-2007 PhiloSoft Design.
+This file is a part of Bookmarks database and Internet robot.
"""
+__version__ = "$Revision$"[11:-2]
+__revision__ = "$Id$"[5:-2]
+__date__ = "$Date$"[7:-2]
+__author__ = "Oleg Broytman <phd@phdru.name>"
+__copyright__ = "Copyright (C) 2002-2011 PhiloSoft Design"
+__license__ = "GNU GPL"
import sys, os, time
from bkmk_objects import Bookmark
#! /bin/sh
+# Check bookmarks
+#
+# Convert bookmarks to DB, check URLS from the DB and convert DB
+# to different formats and back to bookmarks.
+#
+# This file is a part of Bookmarks database and Internet robot.
+#
+# __version__ = "$Revision$"[11:-2]
+# __revision__ = "$Id$"[5:-2]
+# __date__ = "$Date$"[7:-2]
+# __author__ = "Oleg Broytman <phd@phdru.name>"
+# __copyright__ = "Copyright (C) 2001-2010 PhiloSoft Design"
+# __license__ = "GNU GPL"
PATH="$HOME/lib/bookmarks_db:$PATH"
#! /bin/sh
+# Publish bookmarks using hotexplode.pl
+#
+# This file is a part of Bookmarks database and Internet robot.
+#
+# __version__ = "$Revision$"[11:-2]
+# __revision__ = "$Id$"[5:-2]
+# __date__ = "$Date$"[7:-2]
+# __author__ = "Oleg Broytman <phd@phdru.name>"
+# __copyright__ = "Copyright (C) 2001-2010 PhiloSoft Design"
+# __license__ = "GNU GPL"
umask 077
PATH=$HOME/lib/bookmarks_db:$PATH
#! /bin/sh
+# Synchronize bookmarks with remote workstations
+#
+# This file is a part of Bookmarks database and Internet robot.
+#
+# __version__ = "$Revision$"[11:-2]
+# __revision__ = "$Id$"[5:-2]
+# __date__ = "$Date$"[7:-2]
+# __author__ = "Oleg Broytman <phd@phdru.name>"
+# __copyright__ = "Copyright (C) 2001-2010 PhiloSoft Design"
+# __license__ = "GNU GPL"
PATH=$HOME/lib/bookmarks_db:$PATH
umask 077
#! /bin/sh
+# Sort bookmarks
+#
+# This file is a part of Bookmarks database and Internet robot.
+#
+# __version__ = "$Revision$"[11:-2]
+# __revision__ = "$Id$"[5:-2]
+# __date__ = "$Date$"[7:-2]
+# __author__ = "Oleg Broytman <phd@phdru.name>"
+# __copyright__ = "Copyright (C) 2001-2010 PhiloSoft Design"
+# __license__ = "GNU GPL"
PATH=$HOME/lib/bookmarks_db:$PATH
#! /bin/sh
+# Convert bookmarks to DB
+#
+# This file is a part of Bookmarks database and Internet robot.
+#
+# __version__ = "$Revision$"[11:-2]
+# __revision__ = "$Id$"[5:-2]
+# __date__ = "$Date$"[7:-2]
+# __author__ = "Oleg Broytman <phd@phdru.name>"
+# __copyright__ = "Copyright (C) 2001-2010 PhiloSoft Design"
+# __license__ = "GNU GPL"
PATH="$HOME/lib/bookmarks_db:$PATH"
#! /usr/bin/env python
-"""
- Convert Netscape Navigator's or Mozilla's bookmarks.html to a database
+"""Convert Netscape Navigator's or Mozilla's bookmarks.html to a database
- Written by Broytman. Copyright (C) 1997-2003 PhiloSoft Design
+This file is a part of Bookmarks database and Internet robot.
"""
+__version__ = "$Revision$"[11:-2]
+__revision__ = "$Id$"[5:-2]
+__date__ = "$Date$"[7:-2]
+__author__ = "Oleg Broytman <phd@phdru.name>"
+__copyright__ = "Copyright (C) 1997-2011 PhiloSoft Design"
+__license__ = "GNU GPL"
import sys, os
from getopt import getopt
-"""
- Objects to represent bookmarks.html structure
+"""Objects to represent bookmarks.html structure
- Written by Oleg Broytman. Copyright (C) 2000-2010 PhiloSoft Design.
+This file is a part of Bookmarks database and Internet robot.
"""
+__version__ = "$Revision$"[11:-2]
+__revision__ = "$Id$"[5:-2]
+__date__ = "$Date$"[7:-2]
+__author__ = "Oleg Broytman <phd@phdru.name>"
+__copyright__ = "Copyright (C) 2000-2011 PhiloSoft Design"
+__license__ = "GNU GPL"
+
import os, cgi
BKMK_FORMAT = os.environ.get("BKMK_FORMAT", "MOZILLA")
-"""
- Parser for Netscape Navigator's and Mozilla's bookmarks.html
+"""Parser for Netscape Navigator's and Mozilla's bookmarks.html
- Written by Broytman. Copyright (C) 1997-2008 PhiloSoft Design
+This file is a part of Bookmarks database and Internet robot.
"""
+__version__ = "$Revision$"[11:-2]
+__revision__ = "$Id$"[5:-2]
+__date__ = "$Date$"[7:-2]
+__author__ = "Oleg Broytman <phd@phdru.name>"
+__copyright__ = "Copyright (C) 1997-2011 PhiloSoft Design"
+__license__ = "GNU GPL"
import sys, os
from m_lib.net.www.html import HTMLParser
#! /usr/bin/env python
-"""
- Check duplicate URLs in the bookmarks database
+"""Check duplicate URLs in the bookmarks database
- Written by Broytman. Copyright (C) 2000-2007 PhiloSoft Design
+This file is a part of Bookmarks database and Internet robot.
"""
+__version__ = "$Revision$"[11:-2]
+__revision__ = "$Id$"[5:-2]
+__date__ = "$Date$"[7:-2]
+__author__ = "Oleg Broytman <phd@phdru.name>"
+__copyright__ = "Copyright (C) 2000-2011 PhiloSoft Design"
+__license__ = "GNU GPL"
+
import sys
#! /usr/bin/env python
-"""
- Check and show URLs in the bookmarks database where name <> real title
+"""Check and show URLs in the bookmarks database where name != real title
- Written by Broytman. Copyright (C) 2002-2010 PhiloSoft Design.
+This file is a part of Bookmarks database and Internet robot.
"""
+__version__ = "$Revision$"[11:-2]
+__revision__ = "$Id$"[5:-2]
+__date__ = "$Date$"[7:-2]
+__author__ = "Oleg Broytman <phd@phdru.name>"
+__copyright__ = "Copyright (C) 2002-2011 PhiloSoft Design"
+__license__ = "GNU GPL"
+
import sys
from bkmk_objects import make_linear, quote_title, unquote_title
#! /usr/bin/env python
-"""
- Robot interface - check one URL
+"""Robot interface - check one URL
- Written by Broytman. Copyright (C) 2010 PhiloSoft Design.
+This file is a part of Bookmarks database and Internet robot.
"""
+__version__ = "$Revision$"[11:-2]
+__revision__ = "$Id$"[5:-2]
+__date__ = "$Date$"[7:-2]
+__author__ = "Oleg Broytman <phd@phdru.name>"
+__copyright__ = "Copyright (C) 2010, 2011 PhiloSoft Design"
+__license__ = "GNU GPL"
import sys
import httplib
#! /usr/bin/env python
-"""
- Robot interface - check URLs from bookmarks database
+"""Robot interface - check URLs from bookmarks database
- Written by Broytman. Copyright (C) 2000-2010 PhiloSoft Design.
+This file is a part of Bookmarks database and Internet robot.
"""
+__version__ = "$Revision$"[11:-2]
+__revision__ = "$Id$"[5:-2]
+__date__ = "$Date$"[7:-2]
+__author__ = "Oleg Broytman <phd@phdru.name>"
+__copyright__ = "Copyright (C) 2000-2011 PhiloSoft Design"
+__license__ = "GNU GPL"
import sys, os
#! /usr/bin/env python
-"""
- Convert a bkmk database to a different storage.
+"""Convert a bkmk database to a different storage.
- Written by Broytman, Apr 2000 - Aug 2002. Copyright (C) 2000-2002 PhiloSoft Design
+This file is a part of Bookmarks database and Internet robot.
"""
+__version__ = "$Revision$"[11:-2]
+__revision__ = "$Id$"[5:-2]
+__date__ = "$Date$"[7:-2]
+__author__ = "Oleg Broytman <phd@phdru.name>"
+__copyright__ = "Copyright (C) 2000-2011 PhiloSoft Design"
+__license__ = "GNU GPL"
import sys
#! /usr/bin/env python
-"""
- Convert a bkmk database back to bookmarks.html (or other format defined by writer)
+"""Convert a bkmk database back to bookmarks.html (or other format defined by writer)
- Written by Broytman, Mar 2000 - Aug 2002. Copyright (C) 2000-2002 PhiloSoft Design
+This file is a part of Bookmarks database and Internet robot.
"""
+__version__ = "$Revision$"[11:-2]
+__revision__ = "$Id$"[5:-2]
+__date__ = "$Date$"[7:-2]
+__author__ = "Oleg Broytman <phd@phdru.name>"
+__copyright__ = "Copyright (C) 2000-2011 PhiloSoft Design"
+__license__ = "GNU GPL"
import sys
#! /bin/sh
-# Mk-distr script.
+# Helper script called from Makefile
#
-# This file is a part of Bookmarks Database and Internet robot.
-# Author: Oleg Broytman <phd@phdru.name>.
-# Copyright: (C) 2004-2011 PhiloSoft Design.
-# License: GPL.
-
-
-# __version__ = \
-# __revision__ = "$Id$"
+# This file is a part of Bookmarks database and Internet robot.
+#
+# __version__ = "$Revision$"[11:-2]
+# __revision__ = "$Id$"[5:-2]
# __date__ = "$Date$"[7:-2]
# __author__ = "Oleg Broytman <phd@phdru.name>"
-# __copyright__ = "Copyright (C) 2004-2011 PhiloSoft Design"
+# __copyright__ = "Copyright (C) 2001-2010 PhiloSoft Design"
+# __license__ = "GNU GPL"
error() {
-"""
- HTML Parsers wrapper
+"""HTML Parsers
- Written by Broytman. Copyright (C) 1997-2011 PhiloSoft Design
+This file is a part of Bookmarks database and Internet robot.
"""
+__version__ = "$Revision$"[11:-2]
+__revision__ = "$Id$"[5:-2]
+__date__ = "$Date$"[7:-2]
+__author__ = "Oleg Broytman <phd@phdru.name>"
+__copyright__ = "Copyright (C) 1997-2011 PhiloSoft Design"
+__license__ = "GNU GPL"
+
import codecs
universal_charset = "utf-8"
-"""
- HTML Parser using BeautifulSoup
+"""HTML Parser using BeautifulSoup
- Written by Broytman. Copyright (C) 2007-2011 PhiloSoft Design
+This file is a part of Bookmarks database and Internet robot.
"""
+__version__ = "$Revision$"[11:-2]
+__revision__ = "$Id$"[5:-2]
+__date__ = "$Date$"[7:-2]
+__author__ = "Oleg Broytman <phd@phdru.name>"
+__copyright__ = "Copyright (C) 2007-2011 PhiloSoft Design"
+__license__ = "GNU GPL"
+
import re
from sgmllib import SGMLParser, SGMLParseError
from BeautifulSoup import BeautifulSoup, CData
-"""
- HTML Parser using ElementTree+TidyLib.
+"""HTML Parser using ElementTree+TidyLib.
- Written by Broytman. Copyright (C) 2010, 2011 PhiloSoft Design
+This file is a part of Bookmarks database and Internet robot.
"""
+__version__ = "$Revision$"[11:-2]
+__revision__ = "$Id$"[5:-2]
+__date__ = "$Date$"[7:-2]
+__author__ = "Oleg Broytman <phd@phdru.name>"
+__copyright__ = "Copyright (C) 2010, 2011 PhiloSoft Design"
+__license__ = "GNU GPL"
+
from elementtidy import TidyHTMLTreeBuilder
from .util import HTMLParser
-"""
- HTML Parser using html5.
+"""HTML Parser using html5
- Written by Broytman. Copyright (C) 2010, 2011 PhiloSoft Design
+This file is a part of Bookmarks database and Internet robot.
"""
+__version__ = "$Revision$"[11:-2]
+__revision__ = "$Id$"[5:-2]
+__date__ = "$Date$"[7:-2]
+__author__ = "Oleg Broytman <phd@phdru.name>"
+__copyright__ = "Copyright (C) 2010, 2011 PhiloSoft Design"
+__license__ = "GNU GPL"
+
from html5lib import HTMLParser as HTML5Parser
from .util import HTMLParser
-"""
- HTML Parser
+"""HTML Parser using Pythons' HTMLParser
- Written by Broytman. Copyright (C) 1997-2011 PhiloSoft Design
+This file is a part of Bookmarks database and Internet robot.
"""
+__version__ = "$Revision$"[11:-2]
+__revision__ = "$Id$"[5:-2]
+__date__ = "$Date$"[7:-2]
+__author__ = "Oleg Broytman <phd@phdru.name>"
+__copyright__ = "Copyright (C) 1997-2011 PhiloSoft Design"
+__license__ = "GNU GPL"
+
from HTMLParser import HTMLParseError
from m_lib.net.www.html import HTMLParser as _HTMLParser
-"""
- HTML Parser using lxml.html.
+"""HTML Parser using lxml.html
- Written by Broytman. Copyright (C) 2010, 2011 PhiloSoft Design
+This file is a part of Bookmarks database and Internet robot.
"""
+__version__ = "$Revision$"[11:-2]
+__revision__ = "$Id$"[5:-2]
+__date__ = "$Date$"[7:-2]
+__author__ = "Oleg Broytman <phd@phdru.name>"
+__copyright__ = "Copyright (C) 2010, 2011 PhiloSoft Design"
+__license__ = "GNU GPL"
+
from lxml.html import parse
from .util import HTMLParser
-"""
- HTML parsers utilities
+"""HTML parsers utilities
- Written by Broytman. Copyright (C) 2010 PhiloSoft Design
+This file is a part of Bookmarks database and Internet robot.
"""
+__version__ = "$Revision$"[11:-2]
+__revision__ = "$Id$"[5:-2]
+__date__ = "$Date$"[7:-2]
+__author__ = "Oleg Broytman <phd@phdru.name>"
+__copyright__ = "Copyright (C) 2010, 2011 PhiloSoft Design"
+__license__ = "GNU GPL"
+
from HTMLParser import HTMLParser
class HTMLParser(HTMLParser):
-"""
- Thin wrapper for module Robots. Provides "default" robot
+"""Thin wrapper for module Robots. Provides "default" robot
+
+This file is a part of Bookmarks database and Internet robot.
"""
+__version__ = "$Revision$"[11:-2]
+__revision__ = "$Id$"[5:-2]
+__date__ = "$Date$"[7:-2]
+__author__ = "Oleg Broytman <phd@phdru.name>"
+__copyright__ = "Copyright (C) 1997-2011 PhiloSoft Design"
+__license__ = "GNU GPL"
from os import environ
robot_name = environ.get("BKMK_ROBOT", "forking")
#! /usr/bin/env python
-"""
- Run through the bookmarks database and set name to real title
+"""Run through the bookmarks database and set name to real title
- Written by Broytman, Jul 2002 - May 2003. Copyright (C) 2002-2003 PhiloSoft Design
+This file is a part of Bookmarks database and Internet robot.
"""
+__version__ = "$Revision$"[11:-2]
+__revision__ = "$Id$"[5:-2]
+__date__ = "$Date$"[7:-2]
+__author__ = "Oleg Broytman <phd@phdru.name>"
+__copyright__ = "Copyright (C) 2002-2011 PhiloSoft Design"
+__license__ = "GNU GPL"
import sys
#! /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 Broytman. Copyright (C) 2003-2007 PhiloSoft Design.
+This file is a part of Bookmarks database and Internet robot.
"""
+__version__ = "$Revision$"[11:-2]
+__revision__ = "$Id$"[5:-2]
+__date__ = "$Date$"[7:-2]
+__author__ = "Oleg Broytman <phd@phdru.name>"
+__copyright__ = "Copyright (C) 2003-2011 PhiloSoft Design"
+__license__ = "GNU GPL"
import sys
#! /usr/bin/env python
-"""
- Sort bookmarks DB according to a rule:
+"""Sort bookmarks DB according to a rule:
-a - by AddDate
-v - by LastVisit
-m - by LastModified
default is -m
-r - reverse the sort order
- Written by Broytman, Apr 2000. Copyright (C) 2000 PhiloSoft Design
+This file is a part of Bookmarks database and Internet robot.
"""
+__version__ = "$Revision$"[11:-2]
+__revision__ = "$Id$"[5:-2]
+__date__ = "$Date$"[7:-2]
+__author__ = "Oleg Broytman <phd@phdru.name>"
+__copyright__ = "Copyright (C) 2000-2011 PhiloSoft Design"
+__license__ = "GNU GPL"
import sys
-"""
- Thin wrapper for module Storage. Provides "default" storage
+"""Thin wrapper for module Storage. Provides "default" storage
+
+This file is a part of Bookmarks database and Internet robot.
"""
+__version__ = "$Revision$"[11:-2]
+__revision__ = "$Id$"[5:-2]
+__date__ = "$Date$"[7:-2]
+__author__ = "Oleg Broytman <phd@phdru.name>"
+__copyright__ = "Copyright (C) 1997-2011 PhiloSoft Design"
+__license__ = "GNU GPL"
from os import environ
storage_name = environ.get("BKMK_STORAGE", "pickle")
-"""
- Thin wrapper for module Writers. Provides "default" writer
+"""Thin wrapper for module Writers. Provides "default" writer
+
+This file is a part of Bookmarks database and Internet robot.
"""
+__version__ = "$Revision$"[11:-2]
+__revision__ = "$Id$"[5:-2]
+__date__ = "$Date$"[7:-2]
+__author__ = "Oleg Broytman <phd@phdru.name>"
+__copyright__ = "Copyright (C) 1997-2011 PhiloSoft Design"
+__license__ = "GNU GPL"
from os import environ
writer_name = environ.get("BKMK_WRITER", "html")