--> --> -->
 
 
KeyError
Python 2.4.4: /usr/bin/python
Sat Nov 29 02:56:09 2014

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

 /var/www/obc/cgi-bin/bn/datacheck.py
   10 
   11 form = cgi.FieldStorage()
   12 sid, path = getsid(form)
   13 
   14 rawf = path  + "/raw.txt"
sid undefined, path undefined, getsid = <function getsid>, form = FieldStorage(None, None, [MiniFieldStorage('popkids', '1')])
 /home/tkt_bcrs/bcourse/bin/bcprelude.py in getsid(form=FieldStorage(None, None, [MiniFieldStorage('popkids', '1')]))
  111 #
  112 def getsid(form):
  113     sid  = form['sid'].value
  114     sdir = sessiondir + "/" + getsdir(sid,form)
  115     return sid, sdir
sid undefined, form = FieldStorage(None, None, [MiniFieldStorage('popkids', '1')]), ].value = [MiniFieldStorage('popkids', '1')]
 /usr/lib/python2.4/cgi.py in __getitem__(self=FieldStorage(None, None, [MiniFieldStorage('popkids', '1')]), key='sid')
  561             if item.name == key: found.append(item)
  562         if not found:
  563             raise KeyError, key
  564         if len(found) == 1:
  565             return found[0]
builtin KeyError = <class exceptions.KeyError>, key = 'sid'

KeyError: 'sid'
      args = ('sid',)