--> --> -->
 
 
<type 'exceptions.KeyError'>
Python 2.7.3: /usr/bin/python
Wed Aug 5 13:22:41 2015

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 in ()
     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.7/cgi.py in __getitem__(self=FieldStorage(None, None, [MiniFieldStorage('popkids', '1')]), key='sid')
    539             if item.name == key: found.append(item)
    540         if not found:
=>  541             raise KeyError, key
    542         if len(found) == 1:
    543             return found[0]
builtin KeyError = <type 'exceptions.KeyError'>, key = 'sid'

<type 'exceptions.KeyError'>: 'sid'
      args = ('sid',)
      message = 'sid'