Roundup Tracker - Issues

Issue 1118336

classification
Templating Error exceptions.KeyError: properties
Type: Severity: normal
Components: Web interface Versions:
process
Status: closed invalid
:
: richard : richard
Priority: normal :

Created on 2005-02-08 02:27 by anonymous, last changed 2005-02-14 04:40 by richard.

Messages
msg1849 Author: [hidden] (anonymous) Date: 2005-02-08 02:27
Hi,
A little while back Richard mentioned that I could 
change the @template value to display whatever page I 
wanted. In this case he suggested "<input 
name="@template" value="index">"

I was having problems getting this to work so I use the 
demo files. I changed line 88 in issue.item.html from 
<input type="hidden" name="@template" value="item">
  to 
<input type="hidden" name="@template" value="index">

and got the resulting error message below:
I was using templating.py v1.98 as well as the version 
that came with 0.80B2

I'm using 0.80B2 for most things except for templating.py

If you have any questions feel free to contact me at 
greg_w_moore@ctb.com

Templating Error
exceptions.KeyError: 'properties'

Debugging information follows

Looking for "properties", current path:
In path expression "properties" 
While evaluating the standard:'context/properties' 
expression on line 102 Current variables: 
templates <roundup.cgi.templating.Templates instance 
at 0x00CCEBE8> 
repeat <roundup.cgi.PageTemplates.TALES.SafeMapping 
instance at 0x00E5A5A8> 
false 0 
context <HTMLItem(0xe5a4b8) issue 1> 
utils <roundup.cgi.templating.TemplatingUtils instance at 
0x00E5A490> 
db <roundup.cgi.templating.HTMLDatabase instance at 
0x00E5A440> 
nothing None 
i18n 
<roundup.cgi.TranslationService.NullTranslationService 
instance at 0x00E0EAD0> 
true 1 
default <roundup.cgi.PageTemplates.TALES.Default 
instance at 0x00AFF800> 
request <roundup.cgi.templating.HTMLRequest instance 
at 0x00E5A2B0> 
tracker <roundup.instance.Tracker instance at 
0x00CCB918> 
template <Roundup PageTemplate 'issue.index.html'> 
config <roundup.configuration.CoreConfig instance at 
0x00CCB800> 
options {'ok_message': ['msg 1 created<br>issue 1 
created'], 'error_message': []} 
loop <roundup.cgi.PageTemplates.TALES.SafeMapping 
instance at 0x00E5A5A8> 
attrs {'tal:repeat': 'col 
context/properties', 'tal:content': 'col/_name', 'i18n:trans
late': '', 'tal:attributes': 'value col/_name;\n selected 
python:col._name == request.sort[1]'} 
batch <roundup.cgi.templating.Batch instance at 
0x00E5A738> 

A problem occurred in your template "issue.index.html". 
Full traceback: 
Traceback (most recent call last):
  File "C:\Python23\Lib\site-
packages\roundup\cgi\client.py", line 686, in 
renderContext
    result = pt.render(self, None, None, **args)
  File "c:\python23\lib\site-
packages\roundup\cgi\templating.py", line 318, in render
    getEngine().getContext(c), output, tal=1, 
strictinsert=0)()
  File "C:\Python23\Lib\site-
packages\roundup\cgi\TAL\TALInterpreter.py", line 192, 
in __call__
    self.interpret(self.program)
  File "C:\Python23\Lib\site-
packages\roundup\cgi\TAL\TALInterpreter.py", line 236, 
in interpret
    handlers[opcode](self, args)
  File "C:\Python23\Lib\site-
packages\roundup\cgi\TAL\TALInterpreter.py", line 666, 
in do_useMacro
    self.interpret(macro)
  File "C:\Python23\Lib\site-
packages\roundup\cgi\TAL\TALInterpreter.py", line 236, 
in interpret
    handlers[opcode](self, args)
  File "C:\Python23\Lib\site-
packages\roundup\cgi\TAL\TALInterpreter.py", line 411, 
in do_optTag_tal
    self.do_optTag(stuff)
  File "C:\Python23\Lib\site-
packages\roundup\cgi\TAL\TALInterpreter.py", line 396, 
in do_optTag
    return self.no_tag(start, program)
  File "C:\Python23\Lib\site-
packages\roundup\cgi\TAL\TALInterpreter.py", line 391, 
in no_tag
    self.interpret(program)
  File "C:\Python23\Lib\site-
packages\roundup\cgi\TAL\TALInterpreter.py", line 236, 
in interpret
    handlers[opcode](self, args)
  File "C:\Python23\Lib\site-
packages\roundup\cgi\TAL\TALInterpreter.py", line 689, 
in do_defineSlot
    self.interpret(slot)
  File "C:\Python23\Lib\site-
packages\roundup\cgi\TAL\TALInterpreter.py", line 236, 
in interpret
    handlers[opcode](self, args)
  File "C:\Python23\Lib\site-
packages\roundup\cgi\TAL\TALInterpreter.py", line 632, 
in do_condition
    self.interpret(block)
  File "C:\Python23\Lib\site-
packages\roundup\cgi\TAL\TALInterpreter.py", line 236, 
in interpret
    handlers[opcode](self, args)
  File "C:\Python23\Lib\site-
packages\roundup\cgi\TAL\TALInterpreter.py", line 411, 
in do_optTag_tal
    self.do_optTag(stuff)
  File "C:\Python23\Lib\site-
packages\roundup\cgi\TAL\TALInterpreter.py", line 396, 
in do_optTag
    return self.no_tag(start, program)
  File "C:\Python23\Lib\site-
packages\roundup\cgi\TAL\TALInterpreter.py", line 391, 
in no_tag
    self.interpret(program)
  File "C:\Python23\Lib\site-
packages\roundup\cgi\TAL\TALInterpreter.py", line 236, 
in interpret
    handlers[opcode](self, args)
  File "C:\Python23\Lib\site-
packages\roundup\cgi\TAL\TALInterpreter.py", line 632, 
in do_condition
    self.interpret(block)
  File "C:\Python23\Lib\site-
packages\roundup\cgi\TAL\TALInterpreter.py", line 236, 
in interpret
    handlers[opcode](self, args)
  File "C:\Python23\Lib\site-
packages\roundup\cgi\TAL\TALInterpreter.py", line 606, 
in do_loop_tal
    iterator = self.engine.setRepeat(name, expr)
  File "C:\Python23\Lib\site-
packages\roundup\cgi\PageTemplates\TALES.py", line 
212, in setRepeat
    expr = self.evaluate(expr)
  File "C:\Python23\Lib\site-
packages\roundup\cgi\PageTemplates\TALES.py", line 
227, in evaluate
    return expression(self)
  File "C:\Python23\Lib\site-
packages\roundup\cgi\PageTemplates\Expressions.py", 
line 194, in __call__
    return self._eval(econtext)
  File "C:\Python23\Lib\site-
packages\roundup\cgi\PageTemplates\Expressions.py", 
line 182, in _eval
    ob = self._subexprs[-1](econtext)
  File "C:\Python23\Lib\site-
packages\roundup\cgi\PageTemplates\Expressions.py", 
line 138, in _eval
    ob = restrictedTraverse(ob, path, getSecurityManager
())
  File "C:\Python23\Lib\site-
packages\roundup\cgi\PageTemplates\Expressions.py", 
line 324, in restrictedTraverse
    o = object[name]
  File "c:\python23\lib\site-
packages\roundup\cgi\templating.py", line 728, in 
__getitem__
    prop = self._props[item]
KeyError: 'properties'

 

 
msg1850 Author: [hidden] (richard) Date: 2005-02-14 04:40
Logged In: YES 
user_id=6405

OK, I unintentionally misled with my comments. 
 
It's not possible to display a "class" context page in an "item" context. 
History
Date User Action Args
2005-02-08 02:27:15anonymouscreate