# Path: armet/authorization.py
# class ManagedAuthorization(Authorization):
#     """Extends the authorization protocol to apply to managed resources.
# 
#     Managed resources only check accessibility and authorization based on
#     the operation (eg. 'read') and not the method (eg. 'GET').
#     """
# 
#     def inaccessible(self):
#         """Informs the client that the resource is inaccessible."""
#         raise http.exceptions.NotFound()
# 
# Path: armet/exceptions.py
# class ImproperlyConfigured(BaseException):
#     """Something has been set up or configured incorrectly.
#     """


from armet.authorization import ManagedAuthorization
from armet.exceptions import ImproperlyConfigured
    import shield
# -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals, division


try:

except ImportError:
    shield = None


class ShieldAuthorization(ManagedAuthorization):
    """Implements managed authorization using the shield permissions framework.
    """

    def __init__(self, permissions=None):
        # Ensure we have access to the shield framework.
        if shield is None:

# Path: armet/authorization.py
# class ManagedAuthorization(Authorization):
#     """Extends the authorization protocol to apply to managed resources.
# 
#     Managed resources only check accessibility and authorization based on
#     the operation (eg. 'read') and not the method (eg. 'GET').
#     """
# 
#     def inaccessible(self):
#         """Informs the client that the resource is inaccessible."""
#         raise http.exceptions.NotFound()
# 
# Path: armet/exceptions.py
# class ImproperlyConfigured(BaseException):
#     """Something has been set up or configured incorrectly.
#     """


# Path: armet/connectors/sqlalchemy/authorization.py
from armet.authorization import ManagedAuthorization
from armet.exceptions import ImproperlyConfigured
    import shield

# -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals, division


try:

except ImportError:
    shield = None


class ShieldAuthorization(ManagedAuthorization):
    """Implements managed authorization using the shield permissions framework.
    """

    def __init__(self, permissions=None):
        # Ensure we have access to the shield framework.
        if shield is None:

            raise ImproperlyConfigured(