Added ID "__none__" for unknown principal
authorThierry Florac <thierry.florac@onf.fr>
Tue, 11 Oct 2016 16:08:42 +0200
changeset 70 67686624b3cf
parent 69 5026082a5aa1
child 71 0a612729eb2f
Added ID "__none__" for unknown principal
src/pyams_security/principal.py
--- a/src/pyams_security/principal.py	Wed Jun 15 12:42:11 2016 +0200
+++ b/src/pyams_security/principal.py	Tue Oct 11 16:08:42 2016 +0200
@@ -53,7 +53,7 @@
 class UnknownPrincipal(object):
     """Unknown principal info"""
 
-    id = None
+    id = '__none__'
     title = _("<missing principal ID>")
 
 UnknownPrincipal = UnknownPrincipal()