Formatting...
--- a/src/pyams_security/utility.py Fri Jul 03 14:41:01 2020 +0200
+++ b/src/pyams_security/utility.py Wed Jul 15 11:52:09 2020 +0200
@@ -276,11 +276,11 @@
@request_property(key=None)
def effective_principals(self, request, context=None):
try:
- logger.debug(">>> getting principals for principal {0} ({1}) on {2!r}".format(request.principal.title,
- request.principal.id,
- context or request.context))
+ logger.debug(">>> getting principals for principal {0} ({1}) on {2!r}".format(
+ request.principal.title, request.principal.id, context or request.context))
except AttributeError:
- logger.debug(">>> getting principals for request {0} on {1!r}".format(request, context or request.context))
+ logger.debug(">>> getting principals for request {0} on {1!r}".format(
+ request, context or request.context))
principals = {Everyone}
principal_id = self.unauthenticated_userid(request)
if principal_id: