Issue 754510
Created on 2003-06-14 13:29 by anonymous, last changed 2003-06-14 13:29 by anonymous.
msg863 |
Author: [hidden] (anonymous) |
Date: 2003-06-14 13:29 |
|
environment:
roundup 0.6.0b3
winxp,
apache 1.3.9
cgi interface
standard templates
under admin account i try to add new user, on submit it
generates following url:
http://127.0.0.1/cgi-bin/roundup.
cgi/testnewroundup/user6?@ok_message=user%206%
20created&@template=index
which crashes because it cannot render "list" in index
template. i think it should have looked either
.....@template=item
or
....testnewroundup/user?@ok_message....
|
msg864 |
Author: [hidden] (anonymous) |
Date: 2003-06-14 17:08 |
|
Logged In: NO
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 0x00E39C90>
repeat
<roundup.cgi.PageTemplates.TALES.SafeMapping instance at
0x00E3A498>
default
<roundup.cgi.PageTemplates.TALES.Default instance at
0x00958390>
db
<roundup.cgi.templating.HTMLDatabase instance at
0x00E39740>
utils
<roundup.cgi.templating.utils instance at 0x00E39BC8>
request
<roundup.cgi.templating.HTMLRequest instance at
0x00950F30>
tracker
<module '_roundup_tracker_1' from 'c:
/roundup/trackers/orm\__init__.pyc'>
context
<HTMLItem(0xe39b00) user 6>
nothing
None
config
<module '_roundup_tracker_1.config' from 'c:
/roundup/trackers/orm\config.pyc'>
options
{'ok_message': ['user 6 created'], 'error_message': []}
loop
<roundup.cgi.PageTemplates.TALES.SafeMapping instance at
0x00E3A498>
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 "D:
\PROGRAM\python\Lib\site-packages\roundup\cgi\client.py",
line 497, in renderContext
return pt.render(self, None, None, **args)
File "D:
\PROGRAM\python\Lib\site-packages\roundup\cgi\templating.
py", line 197, in render
getEngine().getContext(c), output, tal=1, strictinsert=0)()
File "D:
\PROGRAM\python\Lib\site-packages\roundup\cgi\TAL\TALInte
rpreter.py", line 154, in __call__
self.interpret(self.program)
File "D:
\PROGRAM\python\Lib\site-packages\roundup\cgi\TAL\TALInte
rpreter.py", line 186, in interpret
handlers[opcode](self, args)
File "D:
\PROGRAM\python\Lib\site-packages\roundup\cgi\TAL\TALInte
rpreter.py", line 525, in do_useMacro
self.interpret(macro)
File "D:
\PROGRAM\python\Lib\site-packages\roundup\cgi\TAL\TALInte
rpreter.py", line 186, in interpret
handlers[opcode](self, args)
File "D:
\PROGRAM\python\Lib\site-packages\roundup\cgi\TAL\TALInte
rpreter.py", line 549, in do_defineSlot
self.interpret(slot)
File "D:
\PROGRAM\python\Lib\site-packages\roundup\cgi\TAL\TALInte
rpreter.py", line 186, in interpret
handlers[opcode](self, args)
File "D:
\PROGRAM\python\Lib\site-packages\roundup\cgi\TAL\TALInte
rpreter.py", line 491, in do_condition
self.interpret(block)
File "D:
\PROGRAM\python\Lib\site-packages\roundup\cgi\TAL\TALInte
rpreter.py", line 186, in interpret
handlers[opcode](self, args)
File "D:
\PROGRAM\python\Lib\site-packages\roundup\cgi\TAL\TALInte
rpreter.py", line 474, in do_loop_tal
iterator = self.engine.setRepeat(name, expr)
File "D:
\PROGRAM\python\Lib\site-packages\roundup\cgi\PageTemplat
es\TALES.py", line 210, in setRepeat
expr = self.evaluate(expr)
File "D:
\PROGRAM\python\Lib\site-packages\roundup\cgi\PageTemplat
es\TALES.py", line 225, in evaluate
v = expression(self)
File "D:
\PROGRAM\python\Lib\site-packages\roundup\cgi\PageTemplat
es\Expressions.py", line 188, in __call__
return self._eval(econtext)
File "D:
\PROGRAM\python\Lib\site-packages\roundup\cgi\PageTemplat
es\Expressions.py", line 176, in _eval
ob = self._subexprs[-1](econtext)
File "D:
\PROGRAM\python\Lib\site-packages\roundup\cgi\PageTemplat
es\Expressions.py", line 132, in _eval
ob = restrictedTraverse(ob, path, getSecurityManager())
File "D:
\PROGRAM\python\Lib\site-packages\roundup\cgi\PageTemplat
es\Expressions.py", line 314, in restrictedTraverse
o = object[name]
File "D:
\PROGRAM\python\Lib\site-packages\roundup\cgi\templating.
py", line 505, in __getitem__
prop = self._props[item]
KeyError: list
|
|
Date |
User |
Action |
Args |
2003-06-14 13:29:27 | anonymous | create | |
|