--> -->
 
 
<type 'exceptions.IndexError'>
Python 2.6.2: /usr/local/bin/python
Thu May 17 10:24:15 2012

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/posters/halloweenrecipes.21halloween.com/html/genit.py in ()
  720         tmplSrc = readTmpl('index')
  721         tmplSrc = indexTmpl(tmplSrc,doorName)
  722         pageSrc = useTmpl(tmplSrc)
  723 elif query.getvalue('q') == 'map':
  724         print 'Content-Type: text/html\n'
pageSrc undefined, useTmpl = <function useTmpl at 0x40563c6c>, tmplSrc = u'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Str...d>\r\n</tr>\r\n</table>\r\n</div>\r\n</BODY>\r\n</HTML>\r\n\r\n'
 /home/posters/halloweenrecipes.21halloween.com/html/genit.py in useTmpl(tmpl=u'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Str...d>\r\n</tr>\r\n</table>\r\n</div>\r\n</BODY>\r\n</HTML>\r\n\r\n')
  364                         break
  365                 tmpl = tmpl.replace('{randword}',choice(relatives),1)
  366                 tmpl = tmpl.replace('{randword:up}',upfirst(choice(relatives)),1)
  367         ## random number
  368         while 1:
tmpl = u'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Str...d>\r\n</tr>\r\n</table>\r\n</div>\r\n</BODY>\r\n</HTML>\r\n\r\n', tmpl.replace = <built-in method replace of unicode object at 0x405ffcc8>, global upfirst = <function upfirst at 0x40563764>, global choice = <bound method Random.choice of <random.Random object at 0x826e1f4>>, global relatives = [u'halloween recipes', u'gross recipes for halloween', u'easy halloween recipes', u'scary halloween recipes', u'halloween recipe ideas', u'halloween party recipes', u'halloween recipes fun', u'halloween punch recipes', u'halloween treats recipes', u'traditional halloween recipes', u'halloween recipes for kids', u'halloween snack recipe', u'halloween party drink recipes', u'alcoholic halloween punch recipes', u'halloween dinner recipes', u'halloween kid friendly recipes', u'creepy halloween recipes', u'halloween cookie recipes', u'halloween simple recipes', u'recipes for halloween desserts', ...]
 /home/posters/halloweenrecipes.21halloween.com/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 at 0x401b9050>, ].upper = <built-in method upper of unicode object at 0x401b9050>

<type 'exceptions.IndexError'>: string index out of range
      args = ('string index out of range',)
      message = 'string index out of range'