# Path: armet/exceptions.py
# class ImproperlyConfigured(BaseException):
#     """Something has been set up or configured incorrectly.
#     """
# 
# Path: armet/resources/managed/options.py
# def _method_to_operation(method):
# def _methods_to_operations(methods):
# def _operation_to_method(operation):
# def _operations_to_methods(operations):
#     def __init__(self, meta, name, data, bases):
# class ManagedResourceOptions(options.ResourceOptions):


from armet.exceptions import ImproperlyConfigured
from ..managed import options
# -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals, division


class ModelResourceOptions(options.ManagedResourceOptions):

    def __init__(self, meta, name, data, bases):
        # Initalize base resource options.
        super(ModelResourceOptions, self).__init__(meta, name, data, bases)

        #! Reference to the declarative model defined by
        #! the Object Relational Mapper (ORM).
        self.model = meta.get('model')
        if self.model is None and not self.abstract:
            raise ImproperlyConfigured(

# Path: armet/exceptions.py
# class ImproperlyConfigured(BaseException):
#     """Something has been set up or configured incorrectly.
#     """
# 
# Path: armet/resources/managed/options.py
# def _method_to_operation(method):
# def _methods_to_operations(methods):
# def _operation_to_method(operation):
# def _operations_to_methods(operations):
#     def __init__(self, meta, name, data, bases):
# class ManagedResourceOptions(options.ResourceOptions):


# Path: armet/resources/model/options.py
from armet.exceptions import ImproperlyConfigured
from ..managed import options

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


class ModelResourceOptions(options.ManagedResourceOptions):

    def __init__(self, meta, name, data, bases):
        # Initalize base resource options.
        super(ModelResourceOptions, self).__init__(meta, name, data, bases)

        #! Reference to the declarative model defined by
        #! the Object Relational Mapper (ORM).
        self.model = meta.get('model')
        if self.model is None and not self.abstract:
            raise ImproperlyConfigured(

                'Model resources must be bound to a model.')