def usecases(self): title = "Verwendungszwecke" fieldindex = possibleColumns(self.context).getTerm('usecases').token mixtureid = possibleColumns( self.context).getTerm('substance_mixture_id').token value = self.translate_usecases( self.new_usecase_translation2(self.article[int(mixtureid)])) if value: return {'title': title, 'value': value} return {}
def application_areas(self): title = "Anwendungsgebiete" fieldindex = possibleColumns( self.context).getTerm('application_areas').token mixtureid = possibleColumns( self.context).getTerm('substance_mixture_id').token value = self.translate_application_areas( self.new_application_areas_translation2( self.article[int(mixtureid)])) if value: return {'title': title, 'value': value} return {}
def branch(self): title = "Branche" if self.context.tablename == 'substance_mixture': fieldindex = possibleColumns(self.context).getTerm('branch').token value = self.get_attr_translation('branch', self.article[int(fieldindex)]) elif self.context.tablename == 'substance': fieldindex = possibleColumns(self.context).getTerm('branch').token value = self.get_attr_translation('branch', self.article[int(fieldindex)]) if value: return {'title': title, 'value': value} return {}
def productclass(self): title = "Produktklasse" if self.context.tablename == 'substance_mixture': fieldindex = possibleColumns( self.context).getTerm('productclass').token value = self.get_attr_translation('produktklassenid', self.article[int(fieldindex)]) elif self.context.tablename == 'spray_powder': fieldindex = possibleColumns( self.context).getTerm('productclass').token value = self.get_attr_translation('produktklassenid', self.article[int(fieldindex)]) if value: return {'title': title, 'value': value}
def skin_category(self): title = "Hautschutzmittelgruppe" if self.context.tablename == 'substance_mixture': fieldindex = possibleColumns( self.context).getTerm('skin_category').token value = self.get_attr_translation('hskategorie', self.article[int(fieldindex)]) elif self.context.tablename == 'substance': fieldindex = possibleColumns( self.context).getTerm('skin_category').token value = self.get_attr_translation('hskategorie', self.article[int(fieldindex)]) if value: return {'title': title, 'value': value} return {}
def manufacturer_id(self): title = "Hersteller" if self.context.tablename == 'substance_mixture': fieldindex = possibleColumns( self.context).getTerm('manufacturer_id').token value = self.get_manufacturer(self.article[int(fieldindex)]) elif self.context.tablename == 'spray_powder': fieldindex = possibleColumns( self.context).getTerm('manufacturer_id').token value = self.get_manufacturer(self.article[int(fieldindex)]) elif self.context.tablename == 'manufacturer': value = False if value: return {'title': title, 'value': value} return {}
def checked_emissions(self): title = "Emissionsarmes Produkt" if self.context.tablename == 'substance_mixture': fieldindex = possibleColumns( self.context).getTerm('checked_emissions').token value = self.get_attr_translation( 'boolvocab', str(self.article[int(fieldindex)])) elif self.context.tablename == 'spray_powder': fieldindex = possibleColumns( self.context).getTerm('checked_emissions').token value = self.get_attr_translation( 'boolvocab', str(self.article[int(fieldindex)])) if value: return {'title': title, 'value': value} return {}
def response(self): title = "Responsefaktor" fieldindex = possibleColumns(self.context).getTerm('response').token value = self.article[int(fieldindex)] if value: return {'title': title, 'value': value} return {}
def homepage(self): title = "Homepage" fieldindex = possibleColumns(self.context).getTerm('homepage').token value = self.article[int(fieldindex)] if value: return {'title': title, 'value': value} return {}
def mol(self): title = "Molmasse [g/mol]" fieldindex = possibleColumns(self.context).getTerm('mol').token value = self.article[int(fieldindex)] if value: return {'title': title, 'value': value} return {}
def formula(self): title = "Formel" fieldindex = possibleColumns(self.context).getTerm('formula').token value = self.article[int(fieldindex)] if value: return {'title': title, 'value': value} return {}
def dnel_lokal(self): title = "DNEL Inhalation [mg/m3]: lokal" fieldindex = possibleColumns(self.context).getTerm('dnel_lokal').token value = self.article[int(fieldindex)] if value: return {'title': title, 'value': value} return {}
def egnr(self): title = "EG-Nummer" fieldindex = possibleColumns(self.context).getTerm('egnr').token value = self.article[int(fieldindex)] if value: return {'title': title, 'value': value} return {}
def ueg(self): title = "UEG in g/m3" fieldindex = possibleColumns(self.context).getTerm('ueg').token value = self.article[int(fieldindex)] if value: return {'title': title, 'value': value} return {}
def flashpoint(self): title = "Flammpunkt in °C" fieldindex = possibleColumns(self.context).getTerm('flashpoint').token value = self.article[int(fieldindex)] if value: return {'title': title, 'value': value} return {}
def volume_share(self): title = "Volumenanteil" fieldindex = possibleColumns( self.context).getTerm('volume_share').token value = self.article[int(fieldindex)] if value: return {'title': title, 'value': value} return {}
def product_class(self): title = "Produktklasse" fieldindex = possibleColumns( self.context).getTerm('product_class').token value = self.article[int(fieldindex)] if value: return {'title': title, 'value': value} return {}
def median_value(self): title = "Medianwert" fieldindex = possibleColumns( self.context).getTerm('median_value').token value = self.article[int(fieldindex)] if value: return {'title': title, 'value': value} return {}
def evaporation_lane_180(self): title = "Verdampfungsfaktor 180 Grad" fieldindex = possibleColumns( self.context).getTerm('evaporation_lane_180').token value = self.article[int(fieldindex)] if value: return {'title': title, 'value': value} return {}
def starting_material(self): title = "Ausgangsmaterial" fieldindex = possibleColumns( self.context).getTerm('starting_material').token value = self.article[int(fieldindex)] if value: return {'title': title, 'value': value} return {}
def concentration(self): title = "Konzentration in wässriger Lösung" fieldindex = possibleColumns( self.context).getTerm('concentration').token value = self.article[int(fieldindex)] if value: return {'title': title, 'value': value} return {}
def substance_type(self): title = "Typ des Wasch- und Reinigungsmittels" fieldindex = possibleColumns( self.context).getTerm('substance_type').token value = self.get_attr_translation('substance_type', self.article[int(fieldindex)]) if value: return {'title': title, 'value': value} return {}
def date_checked(self): title = "Prüfdatum" fieldindex = possibleColumns( self.context).getTerm('date_checked').token if self.context.tablename == 'substance_mixture': value = self.article[int(fieldindex)] elif self.context.tablename == 'spray_powder': value = self.article[int(fieldindex)] if value: return {'title': title, 'value': value} return {}
def getindexfortablename(self): columnids = list() print(self.context.resultcolumns) for i in self.context.resultcolumns: columnids.append(possibleColumns(self.context).getTerm(i).token) return columnids