--> -->
IndexError
list index out of range
If you want to report a bug, please save this page and attach it to your bug report.
Traceback
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
/srv/moin_tw/moin-productive/MoinMoin/request.py in run (self=<MoinMoin.request.RequestFastCGI object at 0xf6ad7a6c>)
- 1205 self.page.send_page(self, msg=msg)
- 1206 else:
- 1207 handler(self.page.page_name, self)
- 1208
- 1209 # generate page footer (actions that do not want this footer use
- handler = <function do_show at 0xf79ed304>
- self = <MoinMoin.request.RequestFastCGI object at 0xf6ad7a6c>
- self.page = <MoinMoin.Page.Page instance at 0xf6ad828c>
- self.page.page_name = u'EventStats/UserAgents'
/srv/moin_tw/moin-productive/MoinMoin/wikiaction.py in do_show (pagename=u'EventStats/UserAgents', request=<MoinMoin.request.RequestFastCGI object at 0xf6ad7a6c>)
- 466 else:
- 467 request.cacheable = 1
- 468 Page(request, pagename).send_page(request, count_hit=1)
- 469
- 470
- global Page = <class MoinMoin.Page.Page at 0xf7019f5c>
- request = <MoinMoin.request.RequestFastCGI object at 0xf6ad7a6c>
- pagename = u'EventStats/UserAgents'
- ).send_page undefined
- count_hit undefined
/srv/moin_tw/moin-productive/MoinMoin/Page.py in send_page (self=<MoinMoin.Page.Page instance at 0xf6ad830c>, request=<MoinMoin.request.RequestFastCGI object at 0xf6ad7a6c>, msg='', **keywords={'count_hit': 1})
- 1254 format_args=pi_formatargs,
- 1255 do_cache=do_cache,
- 1256 start_line=pi_lines)
- 1257
- 1258 # check for pending footnotes
- start_line undefined
- pi_lines = 7
/srv/moin_tw/moin-productive/MoinMoin/Page.py in send_page_content (self=<MoinMoin.Page.Page instance at 0xf6ad830c>, request=<MoinMoin.request.RequestFastCGI object at 0xf6ad7a6c>, Parser=<class MoinMoin.parser.wiki.Parser at 0xf6fc6d4c>, body=u'[[StatsChart(useragents)]]\n', format_args=u'', do_cache=1, **kw={'start_line': 7})
- 1345 try:
- 1346 code = self.loadCache(request)
- 1347 self.execute(request, parser, code)
- 1348 except Exception, e:
- 1349 if not is_cache_exception(e):
- self = <MoinMoin.Page.Page instance at 0xf6ad830c>
- self.execute = <bound method Page.execute of <MoinMoin.Page.Page instance at 0xf6ad830c>>
- request = <MoinMoin.request.RequestFastCGI object at 0xf6ad7a6c>
- parser = <MoinMoin.parser.wiki.Parser instance at 0xf6ad872c>
- code = <code object <module> at 0xf70d5068, file "EventStats/UserAgents", line 2>
/srv/moin_tw/moin-productive/MoinMoin/Page.py in execute (self=<MoinMoin.Page.Page instance at 0xf6ad830c>, request=<MoinMoin.request.RequestFastCGI object at 0xf6ad7a6c>, parser=<MoinMoin.parser.wiki.Parser instance at 0xf6ad872c>, code=<code object <module> at 0xf70d5068, file "EventStats/UserAgents", line 2>)
- 1374 __file__ = os.path.join(MoinMoin.__loader__.archive, 'dummy')
- 1375 try:
- 1376 exec code
- 1377 except 'CacheNeedsUpdate':
- 1378 raise Exception('CacheNeedsUpdate')
- code = <code object <module> at 0xf70d5068, file "EventStats/UserAgents", line 2>
/srv/de.wikiwikiweb.moinmaster/bin15/EventStats/UserAgents in
() /srv/moin_tw/moin-productive/MoinMoin/formatter/base.py in macro (self=<MoinMoin.formatter.text_html.Formatter instance at 0xf6ad85ac>, macro_obj=<MoinMoin.wikimacro.Macro instance at 0xf6ad76ec>, name=u'StatsChart', args=u'useragents')
- 288 def macro(self, macro_obj, name, args):
- 289 # call the macro
- 290 return macro_obj.execute(name, args)
- 291
- 292 def _get_bang_args(self, line):
- macro_obj = <MoinMoin.wikimacro.Macro instance at 0xf6ad76ec>
- macro_obj.execute = <bound method Macro.execute of <MoinMoin.wikimacro.Macro instance at 0xf6ad76ec>>
- name = u'StatsChart'
- args = u'useragents'
/srv/moin_tw/moin-productive/MoinMoin/wikimacro.py in execute (self=<MoinMoin.wikimacro.Macro instance at 0xf6ad76ec>, macro_name=u'StatsChart', args=u'useragents')
- 118 else:
- 119 raise ImportError("Cannot load macro %s" % macro_name)
- 120 return execute(self, args)
- 121
- 122 def _m_lang(self, text):
- execute = <function execute at 0xf6a8abc4>
- self = <MoinMoin.wikimacro.Macro instance at 0xf6ad76ec>
- args = u'useragents'
/srv/moin_tw/moin-productive/MoinMoin/macro/StatsChart.py in execute (macro=<MoinMoin.wikimacro.Macro instance at 0xf6ad76ec>, args=u'useragents', **kw={})
- 29 formatter.text(_('Bad chart type "%s"!') % args) +
- 30 formatter.sysmsg(0))
- 31
- 32 return func(macro.formatter.page.page_name, macro.request)
- 33
- func = <function linkto at 0xf6a8a80c>
- macro = <MoinMoin.wikimacro.Macro instance at 0xf6ad76ec>
- macro.formatter = <MoinMoin.formatter.text_html.Formatter instance at 0xf6ad85ac>
- macro.formatter.page = <MoinMoin.Page.Page instance at 0xf6ad830c>
- macro.formatter.page.page_name = u'EventStats/UserAgents'
- macro.request = <MoinMoin.request.RequestFastCGI object at 0xf6ad7a6c>
/srv/moin_tw/moin-productive/MoinMoin/stats/useragents.py in linkto (pagename=u'EventStats/UserAgents', request=<MoinMoin.request.RequestFastCGI object at 0xf6ad7a6c>, params='')
- 24
- 25 if not request.cfg.chart_options:
- 26 return text(pagename, request)
- 27 if _debug:
- 28 return draw(pagename, request)
- global text = <function text at 0xf6a8ad14>
- pagename = u'EventStats/UserAgents'
- request = <MoinMoin.request.RequestFastCGI object at 0xf6ad7a6c>
/srv/moin_tw/moin-productive/MoinMoin/stats/useragents.py in text (pagename=u'EventStats/UserAgents', request=<MoinMoin.request.RequestFastCGI object at 0xf6ad7a6c>)
- 92 _ = request.getText
- 93
- 94 data = get_data(request)
- 95
- 96 sum = 0.0
- data undefined
- global get_data = <function get_data at 0xf6a8a6bc>
- request = <MoinMoin.request.RequestFastCGI object at 0xf6ad7a6c>
/srv/moin_tw/moin-productive/MoinMoin/stats/useragents.py in get_data (request=<MoinMoin.request.RequestFastCGI object at 0xf6ad7a6c>)
- 73 ua = ua[pos:].split(';')[1].strip()
- 74 else:
- 75 ua = ua.split()[0]
- 76 #ua = ua.replace(';', '\n')
- 77 data[ua] = data.get(ua, 0) + 1
- ua = u'\xa0'
- ua.split = <built-in method split of unicode object at 0xf6a7c8d8>
IndexError
list index out of range
- args = ('list index out of range',)
- message = 'list index out of range'
System Details
- Date: Mon, 04 Jun 2007 23:03:26 +0000
- Platform: Linux web.thinkmo.de 2.6.20-thinkmo-1 #1 SMP Sat Feb 17 13:11:11 UTC 2007 x86_64
- Python: Python 2.5 (/usr/bin/python2.5)
- MoinMoin: Release 1.5.8 (release)