]> git.phdru.name Git - bookmarks_db.git/blobdiff - Robots/bkmk_rforking_sub.py
Added __all__.
[bookmarks_db.git] / Robots / bkmk_rforking_sub.py
index 91460f3167f2c629fb6ea0fabaa936a3a1b97e5d..e392080697344298d388c72cfeb005bc20c63e0a 100755 (executable)
@@ -1,12 +1,20 @@
 #! /usr/bin/env python
-"""
-   Check URL - subprocess
+"""Check URL - subprocess for the forking robot
 
-   Written by BroytMann, Mar 1999 - Aug 2002. Copyright (C) 1999-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) 1999-2011 PhiloSoft Design"
+__license__ = "GNU GPL"
+
+__all__ = []
+
 
-import sys, os, urllib
+import sys, os
 
 lib_dir = os.path.normpath(os.path.dirname(sys.argv[0]) + os.sep + os.pardir)
 sys.path.append(lib_dir) # for bkmk_objects.py
@@ -28,13 +36,12 @@ def run():
    from m_lib.flog import openlog
    log = openlog("check2.log")
    from bkmk_rsimple import robot_simple
-   robot = robot_simple(None, log)
+   robot = robot_simple(log)
 
    while 1:
       bookmark = pickle.loads(bkmk_in.read_record())
       log(bookmark.href)
-      url_type, url_rest = urllib.splittype(bookmark.href)
-      robot.check_url(bookmark, url_type, url_rest)
+      robot.check_url(bookmark)
       bkmk_out.write_record(pickle.dumps(bookmark))
       log.outfile.flush()