# HG changeset patch # User fabien@tzone.org # Date 1230706402 18000 # Node ID c078d8a04d76822c17e0e13c6bb18ff56fa94fa6 # Parent 34fcc8b2c1f5cad1572ba124260f78339d14a3b8 Now only add unique keywords, either they are selected or write down. diff -r 34fcc8b2c1f5 -r c078d8a04d76 lib/actions.py --- a/lib/actions.py Wed Dec 31 01:40:46 2008 -0500 +++ b/lib/actions.py Wed Dec 31 01:53:22 2008 -0500 @@ -29,5 +29,6 @@ actions['edit'] = ('edit', 'do_it') actions['import'] = ('imp_xbel', 'do_it') actions['add'] = ('add', 'do_it') +actions['bookmark'] = ('add', 'do_it') actions['keywords'] = ('editkw', 'do_it') actions['prefs'] = ('edit_prefs', 'do_it') diff -r 34fcc8b2c1f5 -r c078d8a04d76 lib/actions/add.py --- a/lib/actions/add.py Wed Dec 31 01:40:46 2008 -0500 +++ b/lib/actions/add.py Wed Dec 31 01:53:22 2008 -0500 @@ -2,6 +2,7 @@ from bkmark import Bookmark from webutils import load_index from templates import Template +from keywords import add_unique_keywords import os def get_bk_from_form(form): @@ -35,7 +36,7 @@ def get_unique_keywords(form, db): kw = get_kw_from_form(form) kw = set(map(db.get_keyword, kw)) - return list(kw.union(get_new_kw_from_form(form)) + return list(kw.union(get_new_kw_from_form(form))) def edit(db, prefs, form, id): name = url = ""