def __init__(self): self.uploadsData = [] DataViewIndexListModel.__init__(self, len(self.uploadsData)) self.columnNames = ("Id", "Folder", "Subdirectory", "Filename", "File Size", "Status", "Progress", "Message", "Speed") self.columnKeys = ("dataViewId", "folder", "subdirectory", "filename", "filesize", "status", "progress", "message", "speed") self.defaultColumnWidths = (40, 170, 170, 200, 75, 55, 100, 200, 100) self.columnTypes = (ColumnType.TEXT, ColumnType.TEXT, ColumnType.TEXT, ColumnType.TEXT, ColumnType.TEXT, ColumnType.BITMAP, ColumnType.PROGRESS, ColumnType.TEXT, ColumnType.TEXT) self.maxDataViewId = 0 self.maxDataViewIdLock = threading.Lock() self.completedCount = 0 self.completedSize = 0 self.completedCountLock = threading.Lock() self.failedCount = 0 self.failedCountLock = threading.Lock() self.inProgressIcon = MYDATA_ICONS.GetIcon("Refresh", size="16x16") self.completedIcon = MYDATA_ICONS.GetIcon("Apply", size="16x16") self.failedIcon = MYDATA_ICONS.GetIcon("Delete", size="16x16") self.startTime = None self.finishTime = None
def __init__(self): self.uploadsData = [] DataViewIndexListModel.__init__(self, len(self.uploadsData)) # Unfiltered uploads data: self.uud = self.uploadsData # Filtered uploads data: self.fud = list() self.filtered = False self.searchString = "" self.columnNames = ("Id", "Folder", "Subdirectory", "Filename", "File Size", "Status", "Progress", "Message") self.columnKeys = ("dataViewId", "folder", "subdirectory", "filename", "filesize", "status", "progress", "message") self.defaultColumnWidths = (40, 170, 170, 200, 75, 55, 100, 300) self.columnTypes = (ColumnType.TEXT, ColumnType.TEXT, ColumnType.TEXT, ColumnType.TEXT, ColumnType.TEXT, ColumnType.BITMAP, ColumnType.PROGRESS, ColumnType.TEXT) # This is the largest ID value which has been used in this model. # It may no longer exist, i.e. if we delete the row with the # largest ID, we don't decrement the maximum ID. self.maxDataViewId = 0 self.inProgressIcon = MYDATA_ICONS.GetIcon("Refresh", size="16x16") self.completedIcon = MYDATA_ICONS.GetIcon("Apply", size="16x16") self.failedIcon = MYDATA_ICONS.GetIcon("Delete", size="16x16")
def __init__(self): self.uploadsData = [] DataViewIndexListModel.__init__(self, len(self.uploadsData)) self.columnNames = ("Id", "Folder", "Subdirectory", "Filename", "File Size", "Status", "Progress", "Message") self.columnKeys = ("dataViewId", "folder", "subdirectory", "filename", "filesize", "status", "progress", "message") self.defaultColumnWidths = (40, 170, 170, 200, 75, 55, 100, 300) self.columnTypes = (ColumnType.TEXT, ColumnType.TEXT, ColumnType.TEXT, ColumnType.TEXT, ColumnType.TEXT, ColumnType.BITMAP, ColumnType.PROGRESS, ColumnType.TEXT) self.maxDataViewId = 0 self.maxDataViewIdLock = threading.Lock() self.completedCount = 0 self.completedCountLock = threading.Lock() self.failedCount = 0 self.failedCountLock = threading.Lock() self.inProgressIcon = MYDATA_ICONS.GetIcon("Refresh", size="16x16") self.completedIcon = MYDATA_ICONS.GetIcon("Apply", size="16x16") self.failedIcon = MYDATA_ICONS.GetIcon("Delete", size="16x16")
def __init__(self): self.foldersModel = None self.verificationsData = list() DataViewIndexListModel.__init__(self, len(self.verificationsData)) self.columnNames = ("Id", "Folder", "Subdirectory", "Filename", "Message") self.columnKeys = ("dataViewId", "folder", "subdirectory", "filename", "message") self.defaultColumnWidths = (40, 170, 170, 200, 500) self.columnTypes = (ColumnType.TEXT, ColumnType.TEXT, ColumnType.TEXT, ColumnType.TEXT, ColumnType.TEXT) self.maxDataViewId = 0 self.maxDataViewIdLock = threading.Lock() self.completedCount = 0 self.completedCountLock = threading.Lock()
def __init__(self, settingsModel): self.settingsModel = settingsModel self.tasksData = list() DataViewIndexListModel.__init__(self, len(self.tasksData)) self.unfilteredTasksData = self.tasksData self.filteredTasksData = list() self.filtered = False self.searchString = "" self.columnNames = ("Id", "Job", "Start Time", "Finish Time", "Schedule Type", "Interval (minutes)") self.columnKeys = ("dataViewId", "jobDesc", "startTime", "finishTime", "scheduleType", "intervalMinutes") self.defaultColumnWidths = (40, 300, 200, 200, 115, 100) # This is the largest ID value which has been used in this model. # It may no longer exist, i.e. if we delete the row with the # largest ID, we don't decrement the maximum ID. self.maxDataViewId = 0
def __init__(self): self.foldersModel = None self.verificationsData = list() DataViewIndexListModel.__init__(self, len(self.verificationsData)) # Unfiltered verifications data: self.uvd = self.verificationsData # Filtered verifications data: self.fvd = list() self.filtered = False self.searchString = "" self.columnNames = ("Id", "Folder", "Subdirectory", "Filename", "Message") self.columnKeys = ("dataViewId", "folder", "subdirectory", "filename", "message") self.defaultColumnWidths = (40, 170, 170, 200, 500) self.columnTypes = (ColumnType.TEXT, ColumnType.TEXT, ColumnType.TEXT, ColumnType.TEXT, ColumnType.TEXT) # This is the largest ID value which has been used in this model. # It may no longer exist, i.e. if we delete the row with the # largest ID, we don't decrement the maximum ID. self.maxDataViewId = 0
def __init__(self, settingsModel): self.settingsModel = settingsModel self.foldersModel = None self.groupsData = list() DataViewIndexListModel.__init__(self, len(self.groupsData)) self.unfilteredGroupsData = self.groupsData self.filteredGroupsData = list() self.filtered = False self.searchString = "" self.columnNames = ("Id", "Short Name", "Full Name") self.columnKeys = ("dataViewId", "shortName", "name") self.defaultColumnWidths = (40, 200, 400) # This is the largest ID value which has been used in this model. # It may no longer exist, i.e. if we delete the row with the # largest ID, we don't decrement the maximum ID. self.maxDataViewId = 0
def __init__(self, usersModel, groupsModel, settingsModel): self.foldersData = [] DataViewIndexListModel.__init__(self, len(self.foldersData)) self.usersModel = usersModel self.groupsModel = groupsModel self.settingsModel = settingsModel # Unfiltered folders data: self.ufd = self.foldersData # Filtered folders data: self.ffd = list() self.filtered = False self.searchString = "" self.columnNames = ("Id", "Folder (dataset)", "Location", "Created", "Experiment", "Status", "Owner", "Group") self.columnKeys = ("dataViewId", "folder", "location", "created", "experimentTitle", "status", "owner.username", "group.shortName") if sys.platform.startswith("win"): self.defaultColumnWidths = (40, 185, 200, 80, 150, 160, 90, 150) else: self.defaultColumnWidths = (40, 185, 200, 80, 160, 160, 90, 150) # This is the largest ID value which has been used in this model. # It may no longer exist, i.e. if we delete the row with the # largest ID, we don't decrement the maximum ID. self.maxDataViewId = 0 self.ignoreIntervalSeconds = 0 self.ignoreOldDatasets = False self.ignoreIntervalNumber = 0 self.ignoreIntervalUnit = "months"