From eea3c66133760723d96f64ebf700a5520c283376 Mon Sep 17 00:00:00 2001 From: Michael Merickel <michael@merickel.org> Date: Fri, 09 Jun 2017 06:59:44 +0200 Subject: [PATCH] Merge pull request #3076 from Pylons/3073-all_permissions_list-iterability-1.8 --- pyramid/security.py | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/pyramid/security.py b/pyramid/security.py index 82e6b73..035f09f 100644 --- a/pyramid/security.py +++ b/pyramid/security.py @@ -21,10 +21,13 @@ class AllPermissionsList(object): """ Stand in 'permission list' to represent all permissions """ + def __iter__(self): - return () + return iter(()) + def __contains__(self, other): return True + def __eq__(self, other): return isinstance(other, self.__class__) -- Gitblit v1.9.3