X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=storage.py;h=9c806e43f97933705383d114ed363ae2b5bc2722;hb=18c4a4f08c96c72f3f06c06ba3e7eb8d87eaa614;hp=0e2b679874b3750b81d11f5e3323224e5c141fbb;hpb=c9cfb54ef36e77aee7187e4533f063d407073ad8;p=bookmarks_db.git diff --git a/storage.py b/storage.py index 0e2b679..9c806e4 100644 --- a/storage.py +++ b/storage.py @@ -1,20 +1,20 @@ """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 " -__copyright__ = "Copyright (C) 1997-2011 PhiloSoft Design" +__copyright__ = "Copyright (C) 1997-2014 PhiloSoft Design" __license__ = "GNU GPL" __all__ = ['import_storage', 'storage'] from os import environ -storage_name = environ.get("BKMK_STORAGE", "pickle") +from bkmk_objects import parse_params, set_params + +storage_name, storage_params = parse_params(environ.get("BKMK_STORAGE", "pickle")) def import_storage(storage_name): exec "from Storage import bkmk_st%s" % storage_name @@ -22,3 +22,4 @@ def import_storage(storage_name): return storage storage = import_storage(storage_name) +set_params(storage, storage_params)