lib/keywords.py
branchxbelweb
changeset 51 7015d65beb3d
parent 47 2781ac85b807
child 71 591ffdca8041
--- a/lib/keywords.py	Fri Oct 24 17:55:22 2003 -0400
+++ b/lib/keywords.py	Sun Oct 26 22:26:03 2003 -0500
@@ -1,4 +1,5 @@
 def get_keywords(form, name):
+	"""extract keywords associate with field name 'name'."""
 	kws = form.getvalue(name)
 	if not isinstance(kws, type([])):
 		if kws:
@@ -8,6 +9,7 @@
 	return map(int, kws)
 
 def set_selection(db, bk, sel, exc = []):
+	"""select keywords selected in the bookmarks list."""
 	if len(bk) > 0:
 		ids, names = map(list,apply(zip,db.get_keywords(bk)))
 		for key in exc: