fix manager_name

This commit is contained in:
Frédéric Péters 2012-10-30 14:03:56 +01:00 committed by Frédéric Péters
parent feda5bc18c
commit d01fbd05ca
2 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ class PcfAnnuaireEntry:
self.manager = get_attr('manager')
if self.manager:
self.manager_url = urllib.quote(self.manager)
self.manager = self.manager.split('=')[1].split(',')[0]
self.manager_name = self.manager.split('=')[1].split(',')[0]
def __str__(self):
return urllib.quote(self.dn)

View File

@ -121,7 +121,7 @@
<li tal:condition="entry/title">Titre : <span tal:replace="entry/title"></span></li>
<li tal:condition="entry/email">Courriel : <a tal:attributes="href string:mailto:${entry/email}" tal:content="entry/email"></a></li>
<li tal:condition="entry/service">Service : <span tal:replace="entry/service"></span></li>
<li tal:condition="entry/manager">Chef de service : <a tal:attributes="href string:?person=${entry/manager}" tal:content="entry/manager"></a></li>
<li tal:condition="entry/manager">Chef de service : <a tal:attributes="href string:?person=${entry/manager_url}" tal:content="entry/manager_name"></a></li>
</ul>
</div>
</div>