src/pyams_ldap/zmi/templates/ldap-attributes.pt
changeset 20 68b5251b9687
parent 0 94ee60dd51e1
child 35 51bf736cbaf6
--- a/src/pyams_ldap/zmi/templates/ldap-attributes.pt	Tue Nov 15 14:49:16 2016 +0100
+++ b/src/pyams_ldap/zmi/templates/ldap-attributes.pt	Tue Jun 06 18:11:52 2017 +0200
@@ -5,6 +5,7 @@
 	</tr>
 	<tr tal:repeat="attr view.attributes">
 		<td tal:content="attr[0]"></td>
-		<td tal:content="structure view.br.join(sorted(attr[1]))"></td>
+		<td tal:define="value attr[1]"
+			tal:content="structure view.br.join(sorted(value)) if isinstance(value, list) else value"></td>
 	</tr>
 </table>