This is from Tonu Mikk at tmikk@umn.edu.
I am using Roundup 1.1.1 on Windows XP with Active
Python 2.4 and PySQlite backend. We have more than 50
users in the users list. When filling out a new
request and clicking on "nosy" list then I get 50 users
listed in a new windows together with a link labelled
"Next>>". When I click on this link, I get the
following error:
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 0x00D81288>
repeat
<roundup.cgi.PageTemplates.TALES.SafeMapping instance
at 0x01A8FA08>
false 0
context <HTMLClass(0x1a8f940) user>
utils <roundup.cgi.templating.TemplatingUtils
instance at 0x01A8F8F0>
db <roundup.cgi.templating.HTMLDatabase instance
at 0x01A8F8A0>
nothing None
i18n
<roundup.cgi.TranslationService.TranslationService
instance at 0x01A7A210>
true 1
default <roundup.cgi.PageTemplates.TALES.Default
instance at 0x00C4BFA8>
request <HTMLRequest FieldStorage(None, None,
[MiniFieldStorage('form', 'itemSynopsis'),
MiniFieldStorage('@startwith', '50'),
MiniFieldStorage('@pagesize', '50'),
MiniFieldStorage('@template', 'help'),
MiniFieldStorage('property', 'nosy'),
MiniFieldStorage('properties',
'username,realname,address'), MiniFieldStorage('@sort',
'username')])>
tracker <roundup.instance.Tracker instance at
0x00D79A30>
template <Roundup PageTemplate '_generic.help.html'>
config <roundup.configuration.CoreConfig instance
at 0x00D79A80>
options {'ok_message': [], 'error_message': []}
loop <roundup.cgi.PageTemplates.TALES.SafeMapping
instance at 0x01A8FA08>
attr <HTMLProperty(0x1a16e68) user58@username
<roundup.hyperdb.String> 'shri'>
batch <roundup.cgi.templating.Batch instance at
0x01A8FDC8>
item <HTMLItem(0x1a19fd0) user 58>
attrs {'tal:attributes': "type
python:request.form['type'].value;\n value attr; id
string:id_$attr", 'name': 'check', 'onclick':
'updatePreview();'}
props ['username', 'realname', 'address']
property 'nosy'
3. A problem occurred in your template
"_generic.help.html".
Full traceback:
Traceback (most recent call last):
File
"C:\Python24\Lib\site-packages\roundup\cgi\client.py",
line 730, in renderContext
result = pt.render(self, None, None, **args)
File
"C:\Python24\lib\site-packages\roundup\cgi\templating.py",
line 322, in render
getEngine().getContext(c), output, tal=1,
strictinsert=0)()
File
"C:\Python24\Lib\site-packages\roundup\cgi\TAL\TALInterpreter.py",
line 192, in __call__
self.interpret(self.program)
File
"C:\Python24\Lib\site-packages\roundup\cgi\TAL\TALInterpreter.py",
line 236, in interpret
handlers[opcode](self, args)
File
"C:\Python24\Lib\site-packages\roundup\cgi\TAL\TALInterpreter.py",
line 608, in do_loop_tal
self.interpret(block)
File
"C:\Python24\Lib\site-packages\roundup\cgi\TAL\TALInterpreter.py",
line 236, in interpret
handlers[opcode](self, args)
File
"C:\Python24\Lib\site-packages\roundup\cgi\TAL\TALInterpreter.py",
line 411, in do_optTag_tal
self.do_optTag(stuff)
File
"C:\Python24\Lib\site-packages\roundup\cgi\TAL\TALInterpreter.py",
line 396, in do_optTag
return self.no_tag(start, program)
File
"C:\Python24\Lib\site-packages\roundup\cgi\TAL\TALInterpreter.py",
line 391, in no_tag
self.interpret(program)
File
"C:\Python24\Lib\site-packages\roundup\cgi\TAL\TALInterpreter.py",
line 236, in interpret
handlers[opcode](self, args)
File
"C:\Python24\Lib\site-packages\roundup\cgi\TAL\TALInterpreter.py",
line 265, in do_startEndTag
self.do_startTag(stuff, self.endsep, self.endlen)
File
"C:\Python24\Lib\site-packages\roundup\cgi\TAL\TALInterpreter.py",
line 293, in do_startTag
ok, name, s = attrAction(self, item)
File
"C:\Python24\Lib\site-packages\roundup\cgi\TAL\TALInterpreter.py",
line 359, in attrAction_tal
evalue = self.engine.evaluateText(item[3])
File
"C:\Python24\Lib\site-packages\roundup\cgi\PageTemplates\TALES.py",
line 233, in evaluateText
text = self.evaluate(expr)
File
"C:\Python24\Lib\site-packages\roundup\cgi\PageTemplates\TALES.py",
line 227, in evaluate
return expression(self)
File
"C:\Python24\Lib\site-packages\roundup\cgi\PageTemplates\PythonExpr.py",
line 69, in __call__
return f()
File "<string>", line 2, in f
File "C:\Python24\lib\cgi.py", line 559, in __getitem__
raise KeyError, key
KeyError: 'type'
|