Skip to content

Commit

Permalink
refactor: bring back some code from past
Browse files Browse the repository at this point in the history
  • Loading branch information
ergo committed Mar 6, 2018
1 parent e6e5b42 commit 8424788
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
4 changes: 2 additions & 2 deletions ziggurat_foundations/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from ziggurat_foundations.utils import ModelProxy
from ziggurat_foundations.utils import ModelProxy, noop # noqa

__version__ = {'major': 0, 'minor': 8, 'patch': 0}

Expand All @@ -14,7 +14,7 @@ def import_model_service_mappings():
UserPermissionService
from ziggurat_foundations.models.services.user_resource_permission import \
UserResourcePermissionService
from ziggurat_foundations.models.services.group_resource_permission import GroupResourcePermissionService # noqa
from ziggurat_foundations.models.services.group_resource_permission import GroupResourcePermissionService # noqa
from ziggurat_foundations.models.services.resource import ResourceService
from ziggurat_foundations.models.services.resource_tree import \
ResourceTreeService
Expand Down
4 changes: 0 additions & 4 deletions ziggurat_foundations/ext/pyramid/sign_in.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,6 @@ def session_provider_callable(request):


class ZigguratSignInProvider(object):
signin_came_from_key = None
signin_username_key = None
signin_password_key = None
UserModel = None

def __init__(self, *args, **kwargs):
for k, v in kwargs.items():
Expand Down
2 changes: 1 addition & 1 deletion ziggurat_foundations/permissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class AllPermissionsList(object):
""" Stand in 'permission list' to represent all permissions """

def __iter__(self):
yield
return ()

def __contains__(self, other):
return True
Expand Down

0 comments on commit 8424788

Please sign in to comment.