| IndexError | Python 2.4.3: /usr/bin/python Thu Mar 11 11:38:23 2010 |
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
| /home/tramadol/domains/wikiviagra.com/public_html/genit.py |
| 717 tmplSrc = readTmpl('index') |
| 718 tmplSrc = indexTmpl(tmplSrc,doorName) |
| 719 pageSrc = useTmpl(tmplSrc) |
| 720 elif query.getvalue('q') == 'map': |
| 721 print 'Content-Type: text/html\n' |
| pageSrc undefined, useTmpl = <function useTmpl>, tmplSrc = u'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Str.../span>\n </div>\n </div>\n </body>\n</html>\n' |
| /home/tramadol/domains/wikiviagra.com/public_html/genit.py in useTmpl(tmpl=u'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Str.../span>\n </div>\n </div>\n </body>\n</html>\n') |
| 345 tmpl = tmpl.replace('{keyword}',pageName) |
| 346 tmpl = tmpl.replace('{keyword:quote}',quote(pageName)) |
| 347 tmpl = tmpl.replace('{keyword:up}',upfirst(pageName)) |
| 348 ## |
| 349 tmpl = tmpl.replace('{mainword}',doorName) |
| tmpl = u'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Str.../span>\n </div>\n </div>\n </body>\n</html>\n', tmpl.replace = <built-in method replace of unicode object>, global upfirst = <function upfirst>, global pageName = u'' |
| /home/tramadol/domains/wikiviagra.com/public_html/genit.py in upfirst(string=u'') |
| 28 |
| 29 def upfirst(string): |
| 30 return string.replace(string[0],string[0].upper(),1) |
| 31 |
| 32 def dwfirst(string): |
| string = u'', string.replace = <built-in method replace of unicode object>, ].upper = <built-in method upper of unicode object> |
IndexError: string index out of range
args =
('string index out of range',)