mirror of
https://github.com/kakwa/ldapcherry
synced 2024-11-25 18:54:29 +01:00
fix templates on list of attributes
This commit is contained in:
parent
322aba33e8
commit
ff95b81ec4
@ -41,7 +41,12 @@
|
|||||||
%for attr in sorted(attrs_list.keys(), key=lambda attr: attrs_list[attr]['weight']):
|
%for attr in sorted(attrs_list.keys(), key=lambda attr: attrs_list[attr]['weight']):
|
||||||
<td>
|
<td>
|
||||||
% if attr in searchresult[user]:
|
% if attr in searchresult[user]:
|
||||||
${searchresult[user][attr]}
|
<%
|
||||||
|
value = searchresult[user][attr]
|
||||||
|
if type(value) is list:
|
||||||
|
value = ', '.join(value)
|
||||||
|
%>
|
||||||
|
${value}
|
||||||
% endif
|
% endif
|
||||||
</td>
|
</td>
|
||||||
% endfor
|
% endfor
|
||||||
|
@ -35,7 +35,12 @@
|
|||||||
%for attr in sorted(attrs_list.keys(), key=lambda attr: attrs_list[attr]['weight']):
|
%for attr in sorted(attrs_list.keys(), key=lambda attr: attrs_list[attr]['weight']):
|
||||||
<td>
|
<td>
|
||||||
% if attr in searchresult[user]:
|
% if attr in searchresult[user]:
|
||||||
${searchresult[user][attr]}
|
<%
|
||||||
|
value = searchresult[user][attr]
|
||||||
|
if type(value) is list:
|
||||||
|
value = ', '.join(value)
|
||||||
|
%>
|
||||||
|
${value}
|
||||||
% endif
|
% endif
|
||||||
</td>
|
</td>
|
||||||
% endfor
|
% endfor
|
||||||
|
Loading…
Reference in New Issue
Block a user