]> git.phdru.name Git - bookmarks_db.git/commitdiff
Parse new storage name and set parameters
authorOleg Broytman <phd@phdru.name>
Fri, 4 Jul 2014 20:28:37 +0000 (00:28 +0400)
committerOleg Broytman <phd@phdru.name>
Fri, 4 Jul 2014 20:28:37 +0000 (00:28 +0400)
convert_st.py

index 89bd8ab2f72cbc61aa41467ee045ae4e49b1158f..c8a6a240fe08b7f1c9b879c4167422d672ef5b21 100755 (executable)
@@ -30,10 +30,14 @@ def run():
       sys.stderr.write("Usage: convert_st [-s] new_storage\n")
       sys.exit(1)
 
+   from bkmk_objects import parse_params, set_params
    from storage import storage, import_storage
+
    storage = storage()
 
-   new_storage = import_storage(args[0])
+   storage_name, storage_params = parse_params(args[0])
+   new_storage = import_storage(storage_name)
+   set_params(new_storage, storage_params)
    new_storage = new_storage()
 
    if report_stats: