| <type 'exceptions.UnboundLocalError'> | Python 2.6.6: /usr/bin/python Sat May 18 22:03:46 2013 |
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
| /is/htdocs/wp1053923_4QQ4FAV7W0/www/index.py in |
| 2000 # |
| 2001 ######################################################### |
| 2002 if __name__ == '__main__': |
| 2003 globalPOST = cgi.FieldStorage() |
| 2004 cgiMain() |
| cgiMain = <function cgiMain> |
| /is/htdocs/wp1053923_4QQ4FAV7W0/www/index.py in cgiMain() |
| 1981 cgiMainHTMLShowEvents() |
| 1982 else: |
| 1983 cgiMainHTMLShowContent(globalPOST.getvalue('content')) |
| 1984 elif ( globalPOST.getvalue('klzz') != None ): |
| 1985 cgiMainHTMLShowKLZZ(globalPOST.getvalue('klzz')) |
| global cgiMainHTMLShowContent = <function cgiMainHTMLShowContent>, global globalPOST = FieldStorage(None, None, [MiniFieldStorage('content', 'thprogarchiv')]), globalPOST.getvalue = <bound method FieldStorage.getvalue of FieldStor..., [MiniFieldStorage('content', 'thprogarchiv')])> |
| /is/htdocs/wp1053923_4QQ4FAV7W0/www/index.py in cgiMainHTMLShowContent(content='thprogarchiv') |
| 817 elif (content == 'form_001'): |
| 818 cTitel = 'Bestellformular' |
| 819 cgiMainHTML(cTitel) |
| 820 contentFile = open('%s/%s' %(tibContentPath, content),'r') |
| 821 for line in contentFile: |
| global cgiMainHTML = <function cgiMainHTML>, cTitel undefined |
<type 'exceptions.UnboundLocalError'>: local variable 'cTitel' referenced before assignment
args =
("local variable 'cTitel' referenced before assignment",)
message =
"local variable 'cTitel' referenced before assignment"