class Test(resource2.Resource): attr = resource2.Header("attr")
class Child(Parent): # The following two properties are not supposed to be overridden # by the parent class property values. header = resource2.Header('ANOTHER_HEADER') body = resource2.Body('ANOTHER_BODY')
class Test(resource2.Resource): base_path = "/something" resource_key = key body_attr = resource2.Body("x") header_attr = resource2.Header("y")
class Parent(resource2.Resource): header = resource2.Header('HEADER') body = resource2.Body('BODY')
class Test(resource2.Resource): foo = resource2.Header('foo') bar = resource2.Body('bar')
class Child(Parent): foo_new = resource2.Header('foo_baz_server') bar_new = resource2.Body('bar_baz_server')
class Test(resource2.Resource): x = resource2.Header("x") y = resource2.Header("y") z = resource2.Header("z")
class Example(resource2.Resource): x = resource2.Body("x") y = resource2.Header("y") z = resource2.URI("z")