--> --> -->
 
 
TypeError
Python 2.4.4: /usr/bin/python
Thu Jul 2 21:56:51 2009

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

 /kunden/homepages/5/d199348766/htdocs/vibe/site/index.cgi
  128 
  129    # Give the template to the users
  130    print Proc.process(template)
  131 
  132 main()
main = <function main>
 /kunden/homepages/5/d199348766/htdocs/vibe/site/index.cgi in main()
   54 
   55    # Logic for mode selection 
   56    Home(form, username)
   57 
   58 # ------------------------------------------------------------
global Home = <function Home>, form = FieldStorage(None, None, []), username = ''
 /kunden/homepages/5/d199348766/htdocs/vibe/site/index.cgi in Home(form=FieldStorage(None, None, []), username='')
   76 
   77    # Run each module and load it in the template
   78    Proc.set("shoutbox", shoutbox.main(form, username))
   79    Proc.set("stats", statsblock.main(form))
   80    #Proc.set("announcement", announcement.main(form))
global Proc = <htmltmpl.TemplateProcessor instance>, Proc.set = <bound method TemplateProcessor.set of <htmltmpl.TemplateProcessor instance>>, shoutbox = <module 'shoutbox' from '/homepages/5/d199348766/htdocs/vibe/site/shoutbox.pyc'>, shoutbox.main = <function main>, form = FieldStorage(None, None, []), username = ''
 /homepages/5/d199348766/htdocs/vibe/site/shoutbox.py in main(form=FieldStorage(None, None, []), username='')
   50       cursor.execute("SELECT username, id from Students WHERE id = %s", shout["user"])   
   51       shoutinfo = cursor.fetchone()
   52       shout["username"] = shoutinfo["username"]
   53       if username == shout["username"]:
   54          shout["bloguserid"] = "None"
shout = {'comment': 'No.', 'user': 92L}, shoutinfo = None

TypeError: unsubscriptable object
      args = ('unsubscriptable object',)