def __init__(self, xml, diskSet, parent): CommonWindow.__init__(self) self.dialog = xml.get_widget("createdatastore") self.diskSet = diskSet self.xml = xml self.parent = parent global _createDSHandlersInitialized if not _createDSHandlersInitialized: self.xml.signal_autoconnect({ 'on_createdatastore_ok_clicked': self.okClicked, 'on_createdatastore_cancel_clicked': self.cancelClicked, }) _createDSHandlersInitialized = True self.view = xml.get_widget("CreatedatastoreTreeView") self.scrolled = xml.get_widget("CreatedatastoreScrolledWindow") storage_widgets.setupStorageView(self.view) prunedDiskSet = buildDiskSet(self.diskSet, [self.parent.defaultDeviceName]) storage_widgets.populateStorageModel(self.view, self.scrolled, prunedDiskSet, esxAndCos=False) self.addFrameToWindow()
def __init__(self, xml, diskSet, parent): CommonWindow.__init__(self) self.dialog = xml.get_widget("createdatastore") self.diskSet = diskSet self.xml = xml self.parent = parent global _createDSHandlersInitialized if not _createDSHandlersInitialized: self.xml.signal_autoconnect({ 'on_createdatastore_ok_clicked' : self.okClicked, 'on_createdatastore_cancel_clicked' : self.cancelClicked, }) _createDSHandlersInitialized = True self.view = xml.get_widget("CreatedatastoreTreeView") self.scrolled = xml.get_widget("CreatedatastoreScrolledWindow") storage_widgets.setupStorageView(self.view) prunedDiskSet = buildDiskSet(self.diskSet, [self.parent.defaultDeviceName]) storage_widgets.populateStorageModel(self.view, self.scrolled, prunedDiskSet, esxAndCos=False) self.addFrameToWindow()
def __init__(self, controlState, xml): controlState.displayHeaderBar = True controlState.windowTitle = "ESX Storage Device" controlState.windowText = "Select a location to install ESX" controlState.windowIcon = "drive.png" self.xml = xml self.controlState = controlState self.view = xml.get_widget("EsxlocationView") self.scrolled = xml.get_widget("EsxlocationScrolled") storage_widgets.setupStorageView(self.view) # only repopulate the esxlocation if we need to if userchoices.getResetEsxLocation(): model = \ storage_widgets.populateStorageModel(self.view, self.scrolled, devices.DiskSet(), vmfsSupport=False) storage_widgets.findFirstSelectableRow(model, self.view, SUPPORTED_DISK_ENTRY) connectSignalHandlerByDict(self, EsxLocationWindow, self.xml, { ('EsxlocationDetailsButton', 'clicked'): 'showDetails', })
def __init__(self, controlState, xml): controlState.displayHeaderBar = True controlState.windowTitle = "ESX Storage Device" controlState.windowText = "Select a location to install ESX" controlState.windowIcon = "drive.png" self.xml = xml self.controlState = controlState self.view = xml.get_widget("EsxlocationView") self.scrolled = xml.get_widget("EsxlocationScrolled") storage_widgets.setupStorageView(self.view) # only repopulate the esxlocation if we need to if userchoices.getResetEsxLocation(): model = \ storage_widgets.populateStorageModel(self.view, self.scrolled, devices.DiskSet(), vmfsSupport=False) storage_widgets.findFirstSelectableRow(model, self.view, SUPPORTED_DISK_ENTRY) connectSignalHandlerByDict( self, EsxLocationWindow, self.xml, { ('EsxlocationDetailsButton', 'clicked'): 'showDetails', })
def __init__(self, controlState, xml): controlState.displayHeaderBar = True controlState.windowTitle = "ESX Storage Device" controlState.windowText = "Select a location to install ESX" controlState.windowIcon = "drive.png" self.controlState = controlState self.xml = xml self.view = xml.get_widget("InstalllocationView") self.scrolled = xml.get_widget("InstalllocationScrolled") storage_widgets.setupStorageView(self.view) model = storage_widgets.populateStorageModel( self.view, self.scrolled, devices.DiskSet()) storage_widgets.findFirstSelectableRow(model, self.view, SUPPORTED_DISK_ENTRY) connectSignalHandlerByDict(self, InstallLocationWindow, self.xml, { ('InstalllocationDetailsButton', 'clicked'): 'showDetails', })
def __init__(self, controlState, xml): controlState.displayHeaderBar = True controlState.windowTitle = "ESX Storage Device" controlState.windowText = "Select a location to install ESX" controlState.windowIcon = "drive.png" self.controlState = controlState self.xml = xml self.view = xml.get_widget("InstalllocationView") self.scrolled = xml.get_widget("InstalllocationScrolled") storage_widgets.setupStorageView(self.view) model = storage_widgets.populateStorageModel(self.view, self.scrolled, devices.DiskSet()) storage_widgets.findFirstSelectableRow(model, self.view, SUPPORTED_DISK_ENTRY) connectSignalHandlerByDict( self, InstallLocationWindow, self.xml, { ('InstalllocationDetailsButton', 'clicked'): 'showDetails', })