Exemplo n.º 1
0
 def get_controller_extensions(self):
     exts = []
     for class_ in (VolumeAdminController, SnapshotAdminController):
         controller = class_()
         extension = extensions.ControllerExtension(self, class_.collection,
                                                    controller)
         exts.append(extension)
     return exts
Exemplo n.º 2
0
    def get_controller_extensions(self):
        extension_list = []

        extension_set = [
            (FoxInSocksServerControllerExtension, 'servers'),
            (FoxInSocksFlavorGooseControllerExtension, 'flavors'),
            (FoxInSocksFlavorBandsControllerExtension, 'flavors'),
        ]
        for klass, collection in extension_set:
            controller = klass()
            ext = extensions.ControllerExtension(self, collection, controller)
            extension_list.append(ext)

        return extension_list
Exemplo n.º 3
0
 def get_controller_extensions(self):
     controller = SchedulerHintsController()
     ext = extensions.ControllerExtension(self, 'volumes', controller)
     return [ext]
Exemplo n.º 4
0
 def get_controller_extensions(self):
     controller = VolumeTypeEncryptionController()
     extension = extensions.ControllerExtension(self, 'types', controller)
     return [extension]
Exemplo n.º 5
0
 def get_controller_extensions(self):
     controller = VolumeActionsController()
     extension = extensions.ControllerExtension(self, 'volumes', controller)
     return [extension]
 def get_controller_extensions(self):
     controller = ExtendedSnapshotAttributesController()
     extension = extensions.ControllerExtension(self, 'snapshots',
                                                controller)
     return [extension]
Exemplo n.º 7
0
 def get_controller_extensions(self):
     controller = SnapshotActionsController()
     extension = extensions.ControllerExtension(self,
                                                'snapshots',
                                                controller)
     return [extension]
Exemplo n.º 8
0
 def get_controller_extensions(self):
     controller = VolumeHostAttributeController()
     extension = extensions.ControllerExtension(self, 'volumes', controller)
     return [extension]
Exemplo n.º 9
0
 def get_controller_extensions(self):
     controller = VolumeImageMetadataController()
     extension = extensions.ControllerExtension(self, 'volumes', controller)
     return [extension]
Exemplo n.º 10
0
 def get_controller_extensions(self):
     controller = UsedLimitsController()
     extension = extensions.ControllerExtension(self, 'limits', controller)
     return [extension]
Exemplo n.º 11
0
 def get_controller_extensions(self):
     controller = VolumeListAdminContextController()
     extension = extensions.ControllerExtension(self, 'volumes', controller)
     return [extension]
 def get_controller_extensions(self):
     controller = SnapshotListAdminContextController()
     extension = extensions.ControllerExtension(self, 'snapshots',
                                                controller)
     return [extension]