Roundup Tracker - Issues

Issue 1177602

classification
Bad keywords sometimes cause Python traceback
Type: Severity: normal
Components: Web interface Versions:
process
Status: closed
:
: richard : a1s, jouni, richard
Priority: normal :

Created on 2005-04-06 08:46 by jouni, last changed 2005-04-07 07:19 by a1s.

Messages
msg1928 Author: [hidden] (jouni) Date: 2005-04-06 08:46
Run demo.py, login as demo/demo, create a keyword
"word1". Then create an issue and type "word1,word2" as
topics; this causes the error message shown below,
instead of the usual neatly formatted error message
that you get if you just type word2:

Templating Error

exceptions.IndexError: no such keyword word2

Debugging information follows

   1. Looking for "topic", current path:
   2. In path expression "topic/field"
   3. While evaluating the
standard:'context/topic/field' expression on line 73
      Current variables:
      templates	<roundup.cgi.templating.Templates
instance at 0x407b346c>
      repeat
<roundup.cgi.PageTemplates.TALES.SafeMapping instance
at 0x40a2b0ec>
      false	0
      context	<HTMLClass(0x40a2b12c) issue>
      utils	<roundup.cgi.templating.TemplatingUtils
instance at 0x40a2b16c>
      db	<roundup.cgi.templating.HTMLDatabase instance
at 0x40a2bf6c>
      nothing	None
      i18n
<roundup.cgi.TranslationService.TranslationService
instance at 0x40a1650c>
      true	1
      default	<roundup.cgi.PageTemplates.TALES.Default
instance at 0x4076192c>
      request	<roundup.cgi.templating.HTMLRequest
instance at 0x40a2b2cc>
      tracker	<roundup.instance.Tracker instance at
0x407afb4c>
      template	<Roundup PageTemplate 'issue.item.html'>
      config	<roundup.configuration.CoreConfig instance
at 0x407af90c>
      options	{'ok_message': [], 'error_message':
["Error: property topic: 'word2' is not a keyword."]}
      loop	<roundup.cgi.PageTemplates.TALES.SafeMapping
instance at 0x40a2b0ec>
      attrs	{'tal:replace': 'structure
context/topic/field'}
   4. A problem occurred in your template
"issue.item.html".

(Plus a full Python traceback)
msg1929 Author: [hidden] (a1s) Date: 2005-04-07 07:19
Logged In: YES 
user_id=8719

thanks, fixed in CVS
History
Date User Action Args
2005-04-06 08:46:46jounicreate