Issue 1433118
Created on 2006-02-16 20:06 by anonymous, last changed 2006-03-03 15:17 by tlaskowski.
msg2162 |
Author: [hidden] (anonymous) |
Date: 2006-02-16 20:06 |
|
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'
|
msg2163 |
Author: [hidden] (tlaskowski) |
Date: 2006-02-22 18:02 |
|
Logged In: YES
user_id=1454093
Any resolution on this issue?
Submitting an issue works fine when entering the category in
by hand. It's just listing that doesn't show up.
|
msg2164 |
Author: [hidden] (tlaskowski) |
Date: 2006-02-23 15:32 |
|
Logged In: YES
user_id=1454093
Any resolution on this issue?
Submitting an issue works fine when entering the category in
by hand. It's just listing that doesn't show up.
|
msg2165 |
Author: [hidden] (tlaskowski) |
Date: 2006-02-23 20:49 |
|
Logged In: YES
user_id=1454093
Any resolution on this issue?
Submitting an issue works fine when entering the category in
by hand. It's just listing that doesn't show up.
|
msg2166 |
Author: [hidden] (richard) |
Date: 2006-02-23 23:23 |
|
Logged In: YES
user_id=6405
Thomas, I'm going to assume it's just some artifact of sf.net that's causing your
comment to be repeated like it is.
If not, then please remember this is a volunteer-maintained project and this bug
will be addressed when one of the voluteers has time to look into it.
|
msg2167 |
Author: [hidden] (tlaskowski) |
Date: 2006-02-24 14:54 |
|
Logged In: YES
user_id=1454093
You're right richard I understand this is a volenteer
project. I did not submit those 3 comments on purpose, must
have been some glitch.
Thanks
|
msg2168 |
Author: [hidden] (richard) |
Date: 2006-03-03 00:10 |
|
Logged In: YES
user_id=6405
The docs are incorrect. The classhelp line should read:
<span tal:replace="structure
python:db.category.classhelp('name',
property='category', width='200')" />
(apologies for wrapping)
|
msg2169 |
Author: [hidden] (tlaskowski) |
Date: 2006-03-03 15:17 |
|
Logged In: YES
user_id=1454093
Thank you so much Richard. That totally solved the problem!
I would like to say that I really apreciate your efforts.
Roundup is a nice light weight tracker that so easy to use.
Thomas Laskowski
|
|
Date |
User |
Action |
Args |
2006-02-16 20:06:34 | anonymous | create | |
|