| <type 'exceptions.IndexError'> | Python 2.6.2: /usr/local/bin/python Thu Sep 9 12:16:34 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/parental/domains/free-parental-control.info/public_html/new/genit.py in |
| 735 change = True |
| 736 openDict(cfg['dict']) |
| 737 pageSrc = reUpd(pageSrc) |
| 738 core.updKwd(doorName.encode('utf_8'),pageName.encode('utf_8'),0) |
| 739 else: |
| pageSrc = u'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Str...();\r\n} catch(err) {}</script>\r\n</body>\r\n</html>\r\n', reUpd = <function reUpd at 0x1a137f50> |
| /home/parental/domains/free-parental-control.info/public_html/new/genit.py in reUpd(tmpl=u'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Str...();\r\n} catch(err) {}</script>\r\n</body>\r\n</html>\r\n') |
| 597 zone = tmpl[i0:i1] |
| 598 new = zone.replace('<<','{').replace('>>','}') |
| 599 new = useTmpl(new) |
| 600 tmpl = tmpl.replace('{update}%s{/update}' % zone, '{update}%s{/update} \n %s' % (zone,new)) |
| 601 return tmpl |
| new = u'\r\n\t\t\t<div class="post">\r\n\t\t\t\t<h3 class="title">{...}/}</p>\r\n\t\t\t\t\t{/loop}\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\t\t\t', global useTmpl = <function useTmpl at 0x1a137de8> |
| /home/parental/domains/free-parental-control.info/public_html/new/genit.py in useTmpl(tmpl=u'\r\n\t\t\t<div class="post">\r\n\t\t\t\t<h3 class="title">{...and:2:4}/}</p>\r\n\t\t\t\t\t\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\t\t\t') |
| 361 break |
| 362 tmpl = tmpl.replace('{randword}',choice(relatives),1) |
| 363 tmpl = tmpl.replace('{randword:up}',upfirst(choice(relatives)),1) |
| 364 ## random number |
| 365 while 1: |
| tmpl = u'\r\n\t\t\t<div class="post">\r\n\t\t\t\t<h3 class="title">{...and:2:4}/}</p>\r\n\t\t\t\t\t\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\t\t\t', tmpl.replace = <built-in method replace of unicode object at 0x1a171cc0>, global upfirst = <function upfirst at 0x1a132c08>, global choice = <bound method Random.choice of <random.Random object at 0x19fc9a20>>, global relatives = [u'free cd burner download softwares ', u'parental controls internet ', u'best dvd burning software for mac os x that is free ', u'free lg viewty flash player download ', u'att parental controls controversy ', u'free accounting software ', u'tv tuner free software ', u'abobe flash player download softpedia ', u'crack winrar ', u'free flip brochure software for mac ', u'how to burn movies to a recordable cd on frostwire ', u'super antispyware free edition ', u'omobile flash player download ', u'avg free antivirus free download ', u'free business software ', u'free mac software ', u'opensuse open source pdf reader ', u'free download flash player for samsung f480 mobile ', u'osx antivirus free ', u'free invoicing software for mac ', ...] |
| /home/parental/domains/free-parental-control.info/public_html/new/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 0x2b202f4f55d0>, ].upper = <built-in method upper of unicode object at 0x2b202f4f55d0> |
<type 'exceptions.IndexError'>: string index out of range
args =
('string index out of range',)
message =
'string index out of range'