Modify generete_methods to support nested resources
Modify generete_methods to support nested resources

This patch modifies generate_methods to support the resources to
have their parent. You can specify the parent esource as follow:

    @generate_methods(LIST, SHOW, CREATE, UPDATE, DELETE)
    class FooHandlerMixin(object):
        """API handler mixin for Foo"""

    @generate_methods(LIST, SHOW, CREATE, UPDATE, DELETE)
    class FoobarHandlerMixin(object):
        """API handler mixin for Foobar under Foo"""
        PARENT = FooHandlerMixin.ALIAS

Change-Id: If2e5862030369ce8cc90de8e5bc0e5fc83d600e9
Signed-off-by: Taku Fukushima <48ddf7139da17a0278f1f27e611ac6b9304f94b2@midokura.com>

JoeMido/networking-midonet,JoeMido/networking-midonet,midonet/python-neutron-plugin-midonet,yamt/networking-midonet,midokura/python-neutron-plugin-midonet,midonet/python-neutron-plugin-midonet,midokura/python-neutron-plugin-midonet,yamt/networking-midonet