[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[minion-cvs] Fix bug in CGI



Update of /home/minion/cvsroot/src/minion/lib/mixminion/directory
In directory moria.mit.edu:/tmp/cvs-serv845/lib/mixminion/directory

Modified Files:
	DirCGI.py 
Log Message:
Fix bug in CGI

Index: DirCGI.py
===================================================================
RCS file: /home/minion/cvsroot/src/minion/lib/mixminion/directory/DirCGI.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- DirCGI.py	28 May 2003 07:36:24 -0000	1.4
+++ DirCGI.py	28 May 2003 07:42:22 -0000	1.5
@@ -35,10 +35,8 @@
     if not form.has_key('desc'):
         err("no desc field found")
 
-    desc = form['desc']
-
-    if type(desc) == type([]):
-        err("too many desc fields")
+    desc = form.getfirst('desc')
+    assert type(desc) == type('')
 
     d = Directory(location=DIRECTORY_BASE)
     inbox = d.getInbox()