'Returns a list of ResourceExtension objects.'

def get_resources(self):

    resources = []
    resources.append(ResourceExtension('extensions', ExtensionsResource(self)))
    for ext in self.extensions.values():
        try:
            resources.extend(ext.get_resources())
        except AttributeError:
            pass
    return resources
