Re: Displaying username and realname in the HTML pages

Andreas Flöter <[email protected]>
Newsgroups gmane.comp.bug-tracking.roundup.user
Message-ID <[email protected]>
Hello,

Anybody out there you could potentially answer my questions below? I would 
very much appreciate a feedback.

Andreas

On Saturday 08 June 2013 14:44:55 Andreas Flöter wrote:
> Hello,
> 
> the username in our use case is the AD login name and cryptic. I would like
> to display the combination of username (realname), preferably sorted by
> realname in the different HTML pages.
> 
> For page "issue.item.html" I changed
> 
>   <td tal:content="structure context/assignedto/menu">assignedto menu</td>
> 
> to
> 
>   <td tal:content="structure
> python:context.assignedto.menu(additional=['realname',])">assignedto
> menu</td>
> 
> and get a menue with a list of "username (Lastname, Firstname)".
> Unfortunately, it is not sorted on last name and firstname.
> 
> For page "issue.index.html" I don't know what I could do to get the
> equivalent.
> 
>    <td tal:condition="request/show/assignedto"
>        tal:content="python:i.assignedto.plain() or default">&nbsp;</td>
> 
> I can exchange "plain()" by "realname" and I get the realname part of the
> user but I don't know how to get both.
> 
> In a previous communication on the mailing list I saw it was mentioned that
> there is a documentation on the API but I don't know where to find it. Could
> you please point me to it?
> 
> Your help is very much appreciated.
> 
> Andreas
> 
> 
> ----------------------------------------------------------------------------
> -- How ServiceNow helps IT people transform IT departments:
> 1. A cloud service to automate IT design, transition and operations
> 2. Dashboards that offer high-level views of enterprise services
> 3. A single system of record for all IT processes
> http://p.sf.net/sfu/servicenow-d2d-j
> _______________________________________________
> Roundup-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/roundup-users

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.