'Returns a list of ControllerExtension objects.'

def get_controller_extensions(self):

    controller_exts = []
    for ext in self.extensions.values():
        try:
            get_ext_method = ext.get_controller_extensions
        except AttributeError:
            continue
        controller_exts.extend(get_ext_method())
    return controller_exts
