def initialize(self): log.info("Initializing STOXY") stoxy_creatable_models = dict((cls.__name__.lower(), cls) for cls in [DataObject, StorageContainer]) creatable_models.update(stoxy_creatable_models)
def initialize(self): log.info("initializing KNOT plugin") compute_creatable_models = dict((cls.__name__.lower(), cls) for cls in [Compute, Template, Network, NetworkInterface, Storage, VirtualizationContainer, Hangar, VncConsole, IPv4Pool]) creatable_models.update(compute_creatable_models)
def initialize(self): log.info("initializing KNOT plugin") compute_creatable_models = dict( (cls.__name__.lower(), cls) for cls in [ Compute, Template, Network, NetworkInterface, Storage, VirtualizationContainer, Hangar, VncConsole, IPv4Pool ]) creatable_models.update(compute_creatable_models)
provideSubscriptionAdapter(ActionsContainerExtension, adapts=(Compute, )) provideSubscriptionAdapter(ByNameContainerExtension, adapts=(Computes, )) class ComputesRootInjector(ContainerInjector): context(OmsRoot) __class__ = Computes class Machines(Container): __contains__ = Compute __name__ = 'machines' def __init__(self): super(Machines, self).__init__() def __str__(self): return 'Machines list' class MachinesRootInjector(ContainerInjector): context(OmsRoot) __class__ = Machines from opennode.oms.model.model import creatable_models compute_creatable_models = dict( (cls.__name__.lower(), cls) for cls in [Compute]) creatable_models.update(compute_creatable_models)
provideSubscriptionAdapter(ActionsContainerExtension, adapts=(Compute, )) provideSubscriptionAdapter(ByNameContainerExtension, adapts=(Computes, )) class ComputesRootInjector(ContainerInjector): context(OmsRoot) __class__ = Computes class Machines(Container): __contains__ = Compute __name__ = 'machines' def __init__(self): super(Machines, self).__init__() def __str__(self): return 'Machines list' class MachinesRootInjector(ContainerInjector): context(OmsRoot) __class__ = Machines from opennode.oms.model.model import creatable_models compute_creatable_models = dict((cls.__name__.lower(), cls) for cls in [Compute]) creatable_models.update(compute_creatable_models)