Running "demo.py", trying to add a user, logged in as
admin:
Templating Error
exceptions.KeyError: list
Debugging information follows
Looking for "list", current path:
In path expression "list"
While evaluating the standard:'context/list' expression
on line 22 Current variables:
templates <roundup.cgi.templating.Templates instance
at 0x8433a34>
repeat <roundup.cgi.PageTemplates.TALES.SafeMapping
instance at 0x8428e6c>
default <roundup.cgi.PageTemplates.TALES.Default
instance at 0x820531c>
db <roundup.cgi.templating.HTMLDatabase instance at
0x841f384>
utils <roundup.cgi.templating.utils instance at
0x8426e44>
request <roundup.cgi.templating.HTMLRequest instance
at 0x83ba10c>
tracker <module '_roundup_tracker_1'
from '/home/leslieb/python/packages/roundup-
0.6.0b3/demo/__init__.pyc'>
context <HTMLItem(0x8433b7c) user 8>
nothing None
config <module '_roundup_tracker_1.config'
from '/home/leslieb/python/packages/roundup-
0.6.0b3/demo/config.pyc'>
options {'ok_message': ['user 8
created'], 'error_message': []}
loop <roundup.cgi.PageTemplates.TALES.SafeMapping
instance at 0x8428e6c>
attrs {'tal:repeat': 'user
context/list', 'tal:attributes': "class python:['normal', 'alt']
[repeat['user'].index%6/3]"}
A problem occurred in your template "user.index.html".
Full traceback:
Traceback (most recent call last):
File "./roundup/cgi/client.py", line 497, in renderContext
return pt.render(self, None, None, **args)
File "roundup/cgi/templating.py", line 197, in render
getEngine().getContext(c), output, tal=1,
strictinsert=0)()
File "roundup/cgi/TAL/TALInterpreter.py", line 154, in
__call__
self.interpret(self.program)
File "roundup/cgi/TAL/TALInterpreter.py", line 186, in
interpret
handlers[opcode](self, args)
File "roundup/cgi/TAL/TALInterpreter.py", line 525, in
do_useMacro
self.interpret(macro)
File "roundup/cgi/TAL/TALInterpreter.py", line 186, in
interpret
handlers[opcode](self, args)
File "roundup/cgi/TAL/TALInterpreter.py", line 549, in
do_defineSlot
self.interpret(slot)
File "roundup/cgi/TAL/TALInterpreter.py", line 186, in
interpret
handlers[opcode](self, args)
File "roundup/cgi/TAL/TALInterpreter.py", line 491, in
do_condition
self.interpret(block)
File "roundup/cgi/TAL/TALInterpreter.py", line 186, in
interpret
handlers[opcode](self, args)
File "roundup/cgi/TAL/TALInterpreter.py", line 474, in
do_loop_tal
iterator = self.engine.setRepeat(name, expr)
File "roundup/cgi/PageTemplates/TALES.py", line 210,
in setRepeat
expr = self.evaluate(expr)
File "roundup/cgi/PageTemplates/TALES.py", line 225,
in evaluate
v = expression(self)
File "roundup/cgi/PageTemplates/Expressions.py", line
188, in __call__
return self._eval(econtext)
File "roundup/cgi/PageTemplates/Expressions.py", line
176, in _eval
ob = self._subexprs[-1](econtext)
File "roundup/cgi/PageTemplates/Expressions.py", line
132, in _eval
ob = restrictedTraverse(ob, path, getSecurityManager
())
File "roundup/cgi/PageTemplates/Expressions.py", line
314, in restrictedTraverse
o = object[name]
File "roundup/cgi/templating.py", line 505, in
__getitem__
prop = self._props[item]
KeyError: list
|