]> git.phdru.name Git - bookmarks_db.git/blobdiff - robots.py
TODO: Configuration file
[bookmarks_db.git] / robots.py
index c979f93ea9c7753b47598510549b1f4a4650bb63..3efb8f02de8dcee0a4b3429a474c160992b8d8d6 100644 (file)
--- a/robots.py
+++ b/robots.py
@@ -1,10 +1,20 @@
-"""
-   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.
+
 """
 
+__author__ = "Oleg Broytman <phd@phdru.name>"
+__copyright__ = "Copyright (C) 1997-2014 PhiloSoft Design"
+__license__ = "GNU GPL"
+
+__all__ = ['import_robot', 'robot']
+
 
 from os import environ
-robot_name = environ.get("BKMK_ROBOT", "forking")
+from bkmk_objects import parse_params, set_params
+
+robot_name, robot_params = parse_params(environ.get("BKMK_ROBOT", "forking"))
 
 def import_robot(robot_name):
    exec "from Robots import bkmk_r%s" % robot_name
@@ -12,3 +22,4 @@ def import_robot(robot_name):
    return robot
 
 robot = import_robot(robot_name)
+set_params(robot, robot_params)