mirror of
https://github.com/kakwa/ldapcherry
synced 2024-12-22 21:00:04 +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']):
|
||||
<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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user