Version 1.1.0
I'm following the instructions for adding a Category
field. When i'm up to a point after adding the
Category displayed in the issue view I run into a
problem. When clicking list link beside category I get
following python error message:
----------------------------------------------------
Templating Error
exceptions.KeyError: 'property'
Debugging information follows
1. Looking for "property", current path:
1. "form" (FieldStorage(None, None,
[MiniFieldStorage('@startwith', '0'),
MiniFieldStorage('@template', 'help'),
MiniFieldStorage('properties', 'name'),
MiniFieldStorage('form', 'itemSynopsis'),
MiniFieldStorage('type', 'checkbox'),
MiniFieldStorage('@pagesize', '50')]))
2. In path expression "form/property/value"
3. While evaluating the
standard:'request/form/property/value' expression on line 2
Current variables:
templates <roundup.cgi.templating.Templates
instance at 0x406ea62c>
repeat
<roundup.cgi.PageTemplates.TALES.SafeMapping instance
at 0x4094384c>
false 0
context <HTMLClass(0x4094378c) category>
utils <roundup.cgi.templating.TemplatingUtils
instance at 0x4094358c>
db <roundup.cgi.templating.HTMLDatabase instance
at 0x409436ec>
nothing None
i18n
<roundup.cgi.TranslationService.TranslationService
instance at 0x4092fd0c>
true 1
default <roundup.cgi.PageTemplates.TALES.Default
instance at 0x4069f34c>
request <HTMLRequest FieldStorage(None, None,
[MiniFieldStorage('@startwith', '0'),
MiniFieldStorage('@template', 'help'),
MiniFieldStorage('properties', 'name'),
MiniFieldStorage('form', 'itemSynopsis'),
MiniFieldStorage('type', 'checkbox'),
MiniFieldStorage('@pagesize', '50')])>
tracker <roundup.instance.Tracker instance at
0x402d010c>
template <Roundup PageTemplate '_generic.help.html'>
config <roundup.configuration.CoreConfig instance
at 0x402d012c>
options {'ok_message': [], 'error_message': []}
loop <roundup.cgi.PageTemplates.TALES.SafeMapping
instance at 0x4094384c>
attrs {'tal:define': 'property
request/form/property/value'}
4. 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 462, in do_setLocal_tal
self.engine.setLocal(name,
self.engine.evaluateValue(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/Expressions.py",
line 194, in __call__
return self._eval(econtext)
File
"/usr/lib/python2.4/site-packages/roundup/cgi/PageTemplates/Expressions.py",
line 182, in _eval
ob = self._subexprs[-1](econtext)
File
"/usr/lib/python2.4/site-packages/roundup/cgi/PageTemplates/Expressions.py",
line 138, in _eval
ob = restrictedTraverse(ob, path, getSecurityManager())
File
"/usr/lib/python2.4/site-packages/roundup/cgi/PageTemplates/Expressions.py",
line 324, in restrictedTraverse
o = object[name]
File "/usr/lib/python2.4/cgi.py", line 559, in
__getitem__
raise KeyError, key
KeyError: 'property'
|