Roundup Tracker - Issues

Issue 1465836

classification
Keyword picker giving exceptions.KeyError 'type'
Type: Severity: normal
Components: Web interface Versions:
process
Status: closed accepted
:
: richard : richard
Priority: normal :

Created on 2006-04-06 16:42 by anonymous, last changed 2006-04-27 04:14 by richard.

Files
File name Uploaded Description Edit Remove
_generic.help.html richard, 2006-04-27 04:14 fixed _generic.help.html file
Messages
msg2234 Author: [hidden] (anonymous) Date: 2006-04-06 16:42
f I start a new issue, then click "(list)" for a list
of topic keywords and 
then, on the pop-up, click "next >>" for page 2, I get
the traceback listed 
below.

I can list all the keywords using 'list keyword' in the
command line interface 
and it works OK.

We have 89 keywords, if that is relevant.

Statutory info:
Roundup version: 1.1.1 
OS: Linux
DB: PostgreSQL 8.0.3
Web server: built-in daemon


Thanks for any help.

------ Traceback: -------
Templating Error

exceptions.KeyError: 'type'

Debugging information follows

   1. In python expression "request.form['type'].value"
   2. While evaluating the expression on line 76
      Current variables:
      templates <roundup.cgi.templating.Templates
instance at 0x407b6e2c>
     
repeat    <roundup.cgi.PageTemplates.TALES.SafeMapping
instance at 
0x40a013ac>
      false     0
      context   <HTMLClass(0x40a0130c) keyword>
      utils     <roundup.cgi.templating.TemplatingUtils
instance at 0x40a0124c>
      db        <roundup.cgi.templating.HTMLDatabase
instance at 0x40a012ac>
      nothing   None
     
i18n      <roundup.cgi.TranslationService.TranslationService
instance at 
0x409ea52c>
      true      1
     
default   <roundup.cgi.PageTemplates.TALES.Default
instance at 0x4076f0ac>
      request   <HTMLRequest FieldStorage(None, None,
[MiniFieldStorage('form', 
'itemSynopsis'), MiniFieldStorage('@startwith', '50'), 
MiniFieldStorage('@pagesize', '50'),
MiniFieldStorage('@template', 'help'), 
MiniFieldStorage('property', 'topic'),
MiniFieldStorage('properties', 
'name')])>
      tracker   <roundup.instance.Tracker instance at
0x4038ef6c>
      template  <Roundup PageTemplate '_generic.help.html'>
      config    <roundup.configuration.CoreConfig
instance at 0x4038ef8c>
      options   {'ok_message': [], 'error_message': []}
     
loop      <roundup.cgi.PageTemplates.TALES.SafeMapping
instance at 
0x40a013ac>
      attr      <HTMLProperty(0x40a06e8c)
keyword57@name <roundup.hyperdb.String> 
'Patch'>
      batch     <roundup.cgi.templating.Batch instance
at 0x40a016ec>
      item      <HTMLItem(0x40a06aec) keyword 57>
      attrs     {'tal:attributes': "type
python:request.form['type'].value;\n 
value attr; id string:id_$attr", 'name': 'check',
'onclick': 
'updatePreview();'}
      props     ['name']
      property  'topic'
   3. A problem occurred in your template
"_generic.help.html".

Full traceback:

Traceback (most recent call last):
  File
"/usr/lib/python2.4/site-packages/roundup/cgi/client.py",
line 729, in 
renderContext
    result = pt.render(self, None, None, **args)
  File
"/usr/lib/python2.4/site-packages/roundup/cgi/templating.py",
line 322, 
in render
    getEngine().getContext(c), output, tal=1,
strictinsert=0)()
  File
"/usr/lib/python2.4/site-packages/roundup/cgi/TAL/TALInterpreter.py",

line 192, in __call__
    self.interpret(self.program)
  File
"/usr/lib/python2.4/site-packages/roundup/cgi/TAL/TALInterpreter.py",

line 236, in interpret
    handlers[opcode](self, args)
  File
"/usr/lib/python2.4/site-packages/roundup/cgi/TAL/TALInterpreter.py",

line 608, in do_loop_tal
    self.interpret(block)
  File
"/usr/lib/python2.4/site-packages/roundup/cgi/TAL/TALInterpreter.py",

line 236, in interpret
    handlers[opcode](self, args)
  File
"/usr/lib/python2.4/site-packages/roundup/cgi/TAL/TALInterpreter.py",

line 411, in do_optTag_tal
    self.do_optTag(stuff)
  File
"/usr/lib/python2.4/site-packages/roundup/cgi/TAL/TALInterpreter.py",

line 396, in do_optTag
    return self.no_tag(start, program)
  File
"/usr/lib/python2.4/site-packages/roundup/cgi/TAL/TALInterpreter.py",

line 391, in no_tag
    self.interpret(program)
  File
"/usr/lib/python2.4/site-packages/roundup/cgi/TAL/TALInterpreter.py",

line 236, in interpret
    handlers[opcode](self, args)
  File
"/usr/lib/python2.4/site-packages/roundup/cgi/TAL/TALInterpreter.py",

line 265, in do_startEndTag
    self.do_startTag(stuff, self.endsep, self.endlen)
  File
"/usr/lib/python2.4/site-packages/roundup/cgi/TAL/TALInterpreter.py",

line 293, in do_startTag
    ok, name, s = attrAction(self, item)
  File
"/usr/lib/python2.4/site-packages/roundup/cgi/TAL/TALInterpreter.py",

line 359, in attrAction_tal
    evalue = self.engine.evaluateText(item[3])
  File
"/usr/lib/python2.4/site-packages/roundup/cgi/PageTemplates/TALES.py",

line 233, in evaluateText
    text = self.evaluate(expr)
  File
"/usr/lib/python2.4/site-packages/roundup/cgi/PageTemplates/TALES.py",

line 227, in evaluate
    return expression(self)
  File 
"/usr/lib/python2.4/site-packages/roundup/cgi/PageTemplates/PythonExpr.py",

line 69, in __call__
    return f()
  File "<string>", line 2, in f
  File "/usr/lib/python2.4/cgi.py", line 559, in
__getitem__
    raise KeyError, key
KeyError: 'type'
msg2235 Author: [hidden] (richard) Date: 2006-04-27 04:14
Logged In: YES 
user_id=6405

Fixed in CVS. I've attached the fixed _generic.help.html file.
History
Date User Action Args
2006-04-06 16:42:07anonymouscreate