[Zope-CMF] Exposing the document owner's role

Norbert Marrale norbert@attira.com
Fri, 10 Aug 2001 20:58:47 +0200


On 10 Aug 2001, at 16:13, lucas.hofman@pgs.com wrote:

> [..]
> >   <td>
> >    <dtml-var "_.string.join( portal_membership.getRoles(id), ',' )">
> >    </td>
> 

Didn't do the trick, but this does!

   <dtml-var "_.string.join( portal_membership.getMemberById(id).getRoles()
                           , ',' )">

which in your customized roster skin can be written as 
           roles="_.string.join(member.getRoles(), ', ')"

in the <dtml-let> statement.

Norbert



On the Road of Life, 
there are Tourists and there are Travelers.
I'd rather be Traveling!

Norbert Marrale
norbert@infocatch.com