lib/actions/edit.py
changeset 74 6784c4350b41
parent 73 c078d8a04d76
child 75 4f6b7b48322f
--- a/lib/actions/edit.py	Wed Dec 31 01:53:22 2008 -0500
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,24 +0,0 @@
-#!/usr/bin/python
-
-from templates import Template
-
-def main(keywords, bk, prefs):
-    tmpl = Template("add_bk.tmpl", prefs)
-    tmpl.set('ctitle', bk.name)
-    tmpl.set('curl', bk.url)
-    tmpl.set('desc', bk.desc)
-    tmpl.set('bkid', bk.id)
-    tmpl.set('Keywords', keywords)
-    print tmpl.process()
-
-def do_it(action, db, prefs, form):
-    id = int(form["id"].value)
-    bk = db.get_bookmarks([id])[0]
-    kw = db.get_all_keywords()[1:]
-    kw.sort(lambda l,r: cmp(l[1],r[1]))
-    (ids, kws) = apply(zip,db.get_keywords([id]))
-    kw = map(lambda elem: {
-   	 'id' : elem[0],
-   	 'keyword' : elem[1],
-	 'selected' : elem[0] in ids }, kw)
-    main(kw, bk, prefs)