fix manager_name
This commit is contained in:
parent
feda5bc18c
commit
d01fbd05ca
|
@ -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)
|
||||
|
|
|
@ -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>
|
||||
|
|
Reference in New Issue