def __init__(self, table, enabled, regex): Row.__init__(self, table) self._app = table.app self._data = None self.enabled = str(enabled) self.regex = str(regex) self.highlight = False
def __init__(self, table, group, dupe): Row.__init__(self, table) self._app = table.app self._group = group self._dupe = dupe self._data = None self._data_delta = None self._delta_columns = None
def sort_key_for_column(self, column_name): value = RowBase.sort_key_for_column(self, column_name) if isinstance(value, str): value = sort_string(value) elif isinstance(value, Amount): value = value.value return value
def sort_key_for_column(self, column_name): if column_name == 'order': return (self._page, self._order) elif column_name == 'state': if self._state == ElementState.Title: return (self._state, self.element.title_level) else: return (self._state, 0) else: return Row.sort_key_for_column(self, column_name)
def __init__(self, table, element): Row.__init__(self, table) self.element = element self._order = element.order self._page = element.page self._x = element.x self._y = element.y self._fontsize = element.fontsize self._text_length = len(element.text) self.text = element.text.replace('\n', ' ') self._state = element.state # Format self.order = "{:d}".format(self._order) self.page = "{:d}".format(self._page) self.x = "{:.0f}".format(self._x) self.y = "{:.0f}".format(self._y) self.fontsize = "{:0.1f}".format(self._fontsize) self.text_length = "{:d}".format(self._text_length) statetext = self._state.capitalize() if self._state == ElementState.Title: self.state = "{} ({})".format(statetext, self.element.title_level) else: self.state = statetext
def __init__(self, table, dupe, msg): Row.__init__(self, table) self.dupe = dupe self.msg = msg self.path = str(dupe.path)
def __init__(self, table, path1, path2): Row.__init__(self, table) self.path1_original = path1 self.path2_original = path2 self.path1 = str(path1) self.path2 = str(path2)