template variable reference fails.
Tom Ekberg <[email protected]>
| Newsgroups | gmane.comp.bug-tracking.roundup.user |
|---|---|
| Message-ID | <DM6PR08MB4778DEBD4EA9FEFF0B3B2743CA670@DM6PR08MB4778.namprd08.prod.outlook.com> |
I'm using almost the tip of the roundup code and am having trouble running a classic template that works fine in the old (1.5) roundup. I'm running python 3.5, Ubuntu 16.04. The error I'm getting is this:
<class 'NameError'>: name 'compstaff_ulist' is not defined
If I look further down the error page on the left side I see the variable compstaff_ulist defined! If it matters, the structure of that part of the classic template (issue.item.html) looks links this:
<table class="form" border="0"
tal:define="compstaff_ulist python:sorted...
The reference to the variable is within this table as a <td> element:
<td
tal:define="users python:sorted([user for user in db['user'].list() if user.username in compstaff_ulist], key=lambda x:x.realname.plain().lower());...
Have you encountered this problem, where a variable is tal:defined but is not recognized in a python expression? I have other variables tal:defined in the <body> element in page.html that work fine. It looks like I may have to instrument PythonExpr.py. If you have a better place to start looking I'd like to know.
[cid:8860d8a9-3cee-427d-abf0-8eb443201d58]
_______________________________________________
Roundup-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/roundup-users
Outlook-0xtpv1td.jpg
(image/jpeg, 14.3 KB) - not displayed