1
0
mirror of https://github.com/kakwa/ldapcherry synced 2024-11-22 09:24:21 +01:00

fix templates on list of attributes

This commit is contained in:
kakwa 2015-06-15 23:07:02 +02:00
parent 322aba33e8
commit ff95b81ec4
2 changed files with 12 additions and 2 deletions

View File

@ -41,7 +41,12 @@
%for attr in sorted(attrs_list.keys(), key=lambda attr: attrs_list[attr]['weight']):
<td>
% if attr in searchresult[user]:
${searchresult[user][attr]}
<%
value = searchresult[user][attr]
if type(value) is list:
value = ', '.join(value)
%>
${value}
% endif
</td>
% endfor

View File

@ -35,7 +35,12 @@
%for attr in sorted(attrs_list.keys(), key=lambda attr: attrs_list[attr]['weight']):
<td>
% if attr in searchresult[user]:
${searchresult[user][attr]}
<%
value = searchresult[user][attr]
if type(value) is list:
value = ', '.join(value)
%>
${value}
% endif
</td>
% endfor