|
From: John P. R. <ro...@cs...> - 2017-04-01 22:07:16
|
Hi all:
In an issue index page I display a multilink to users (nosy list)
using:
<td tal:condition="request/show/nosy" content="i/nosy">
</td>
I see the usernames for the entries on the list.
However I want these usernames to be hyperlinks to the user page.
So I entered the following tal:
<tal:block tal:repeat="u i/nosy">
<a tal:attributes="href string:user${u/id}"
tal:content="python:u.username or default">
NONE
</a>
</tal:block>
However it looks like "u" is never assigned a value and the "a" links
are never generated.
Even using
<tal:block tal:repeat="u i/verynosy">
<tal:block tal:content="u/id"> </tal:block>
</tal:block>
fails to generate any output.
This happens for the anonymous user who has no access to the user
class except for the id and username (which is also the key and the
sort order field).
If I provide full access to the user, then it looks like the repeat
loop works. I was expecting the repeat loop would work if the user had
access to the id (key) field.
Does anybody have an idea where I should look to try to fix this? My
claim is there is a bad permission check somewhere that looks for view
access to the class and not view (or search) access to the key field.
Thanks.
--
-- rouilj
John Rouillard
===========================================================================
My employers don't acknowledge my existence much less my opinions.
|