Roundup Tracker - Issues

Issue 965447

classification
clarify definition of 'context' variable in templates
Type: Severity: normal
Components: Documentation Versions:
process
Status: closed fixed
:
: : richard, stefan
Priority: normal :

Created on 2004-06-03 02:17 by stefan, last changed 2004-06-21 05:46 by richard.

Messages
msg1286 Author: [hidden] (stefan) Date: 2004-06-03 02:17
The documentation at
http://roundup.sourceforge.net/doc-0.7/customizing.html#the-context-variable
suggests that the 'context' variable is always defined
and assumes three different kinds of values (None, a
class, or an instance), depending on the request.
In reality instead of being 'None', the context
variable doesn't exist if the tracker's 'home' page is
accessed, so instead of 'tal:condition="context"'
the user has to use 'tal:condition="context | nothing"'
to avoid an exception.
Just a clarification...
msg1287 Author: [hidden] (richard) Date: 2004-06-21 05:46
Logged In: YES 
user_id=6405

Hrm, that's odd. The code clearly has context being defaulted 
to None. I'll have to poke some more. 
msg1288 Author: [hidden] (richard) Date: 2004-06-21 05:54
Logged In: YES 
user_id=6405

Ehem. Richard looks at maint-0-7 code instead of HEAD, and 
fixes the bug. Sorry! 
History
Date User Action Args
2004-06-03 02:17:04stefancreate