':param controller: object that implement methods created by routes
lib
:param inherits: another resource object that this resource should
inherit extensions from. Any action extensions that
are applied to the parent resource will also apply
to this resource.'

def __init__(self, controller, inherits=None):

    self.controller = controller
    self.default_serializers = dict(json=JSONDictSerializer)
    self.wsgi_actions = {}
    if controller:
        self.register_actions(controller)
    self.wsgi_extensions = {}
    self.wsgi_action_extensions = {}
    self.inherits = inherits
