Added isDevControllerClass so that XendDomainInfo does not need to store the same information internally. This may soon go, depending on how useful controller.py turns out to be.

This commit is contained in:
ewan@linford.intra committed 2005-09-13 14:49:37 +01:00
1 parent 5487f5762e
commit c0bff953ee
1 file changed
+7
@@ -63,6 +63,13 @@ def addDevControllerClass(name, cls):
cls.type = name
getDevControllerTable().addDevControllerClass(cls)
def isDevControllerClass(name):
"""@return True if a device controller class has been registered with
the controller table under the given name."""
return name in getDevControllerTable().controllerClasses
def createDevController(name, vm, recreate=False):
return getDevControllerTable().createDevController(name, vm, recreate=recreate)
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.