Templating Error

exceptions.IndexError: list index out of range

Debugging information follows

  1. In python expression "request.group[1]"
  2. While evaluating the expression on line 30
    Current variables:
    templates<roundup.cgi.templating.Templates instance at 0xb7a0856c>
    repeat<roundup.cgi.PageTemplates.TALES.SafeMapping instance at 0xb761eb8c>
    false0
    context<HTMLClass(0xb785560c) issue>
    utils<roundup.cgi.templating.TemplatingUtils instance at 0xb77b614c>
    db<roundup.cgi.templating.HTMLDatabase instance at 0xb785e04c>
    nothingNone
    i18n<roundup.cgi.TranslationService.TranslationService instance at 0xb7a085cc>
    true1
    default<roundup.cgi.PageTemplates.TALES.Default instance at 0xb7a80d6c>
    request<HTMLRequest FieldStorage(None, None, [MiniFieldStorage('@sort', '-activity'), MiniFieldStorage('@group', 'priority'), MiniFieldStorage('@filter', 'status,assignedto'), MiniFieldStorage('@columns', 'id,activity,title,creator,difficulty,milestone,status'), MiniFieldStorage('status', '-1,1,2,3,4,5,6,7'), MiniFieldStorage('assignedto', '-1')])>
    tracker<roundup.instance.Tracker instance at 0xb7c1176c>
    template<Roundup PageTemplate 'issue.index.html'>
    config<roundup.configuration.CoreConfig instance at 0xb7c11c0c>
    options{'ok_message': [], 'error_message': []}
    loop<roundup.cgi.PageTemplates.TALES.SafeMapping instance at 0xb761eb8c>
    i<HTMLItem(0xb755098c) issue 383>
    attrs{'tal:define': 'group python:request.group[1]', 'tal:condition': 'python:group and batch.propchanged(group)'}
    batch<roundup.cgi.templating.Batch instance at 0xb761ee8c>
  3. A problem occurred in your template "issue.index.html".
Full traceback:
Traceback (most recent call last):
  File "/usr/lib/python2.3/site-packages/roundup/cgi/client.py", line 730, in renderContext
    result = pt.render(self, None, None, **args)
  File "/usr/lib/python2.3/site-packages/roundup/cgi/templating.py", line 323, in render
    getEngine().getContext(c), output, tal=1, strictinsert=0)()
  File "/usr/lib/python2.3/site-packages/roundup/cgi/TAL/TALInterpreter.py", line 192, in __call__
    self.interpret(self.program)
  File "/usr/lib/python2.3/site-packages/roundup/cgi/TAL/TALInterpreter.py", line 236, in interpret
    handlers[opcode](self, args)
  File "/usr/lib/python2.3/site-packages/roundup/cgi/TAL/TALInterpreter.py", line 666, in do_useMacro
    self.interpret(macro)
  File "/usr/lib/python2.3/site-packages/roundup/cgi/TAL/TALInterpreter.py", line 236, in interpret
    handlers[opcode](self, args)
  File "/usr/lib/python2.3/site-packages/roundup/cgi/TAL/TALInterpreter.py", line 411, in do_optTag_tal
    self.do_optTag(stuff)
  File "/usr/lib/python2.3/site-packages/roundup/cgi/TAL/TALInterpreter.py", line 396, in do_optTag
    return self.no_tag(start, program)
  File "/usr/lib/python2.3/site-packages/roundup/cgi/TAL/TALInterpreter.py", line 391, in no_tag
    self.interpret(program)
  File "/usr/lib/python2.3/site-packages/roundup/cgi/TAL/TALInterpreter.py", line 236, in interpret
    handlers[opcode](self, args)
  File "/usr/lib/python2.3/site-packages/roundup/cgi/TAL/TALInterpreter.py", line 689, in do_defineSlot
    self.interpret(slot)
  File "/usr/lib/python2.3/site-packages/roundup/cgi/TAL/TALInterpreter.py", line 236, in interpret
    handlers[opcode](self, args)
  File "/usr/lib/python2.3/site-packages/roundup/cgi/TAL/TALInterpreter.py", line 632, in do_condition
    self.interpret(block)
  File "/usr/lib/python2.3/site-packages/roundup/cgi/TAL/TALInterpreter.py", line 236, in interpret
    handlers[opcode](self, args)
  File "/usr/lib/python2.3/site-packages/roundup/cgi/TAL/TALInterpreter.py", line 411, in do_optTag_tal
    self.do_optTag(stuff)
  File "/usr/lib/python2.3/site-packages/roundup/cgi/TAL/TALInterpreter.py", line 396, in do_optTag
    return self.no_tag(start, program)
  File "/usr/lib/python2.3/site-packages/roundup/cgi/TAL/TALInterpreter.py", line 391, in no_tag
    self.interpret(program)
  File "/usr/lib/python2.3/site-packages/roundup/cgi/TAL/TALInterpreter.py", line 236, in interpret
    handlers[opcode](self, args)
  File "/usr/lib/python2.3/site-packages/roundup/cgi/TAL/TALInterpreter.py", line 608, in do_loop_tal
    self.interpret(block)
  File "/usr/lib/python2.3/site-packages/roundup/cgi/TAL/TALInterpreter.py", line 236, in interpret
    handlers[opcode](self, args)
  File "/usr/lib/python2.3/site-packages/roundup/cgi/TAL/TALInterpreter.py", line 411, in do_optTag_tal
    self.do_optTag(stuff)
  File "/usr/lib/python2.3/site-packages/roundup/cgi/TAL/TALInterpreter.py", line 396, in do_optTag
    return self.no_tag(start, program)
  File "/usr/lib/python2.3/site-packages/roundup/cgi/TAL/TALInterpreter.py", line 391, in no_tag
    self.interpret(program)
  File "/usr/lib/python2.3/site-packages/roundup/cgi/TAL/TALInterpreter.py", line 236, in interpret
    handlers[opcode](self, args)
  File "/usr/lib/python2.3/site-packages/roundup/cgi/TAL/TALInterpreter.py", line 462, in do_setLocal_tal
    self.engine.setLocal(name, self.engine.evaluateValue(expr))
  File "/usr/lib/python2.3/site-packages/roundup/cgi/PageTemplates/TALES.py", line 227, in evaluate
    return expression(self)
  File "/usr/lib/python2.3/site-packages/roundup/cgi/PageTemplates/PythonExpr.py", line 69, in __call__
    return f()
  File "<string>", line 2, in f
IndexError: list index out of range