Esempio n. 1
0
 def _set_crafts(self, crafts):
     if isinstance(crafts, str):
         self.crafts = [standardizeString(crafts).lower()]
     elif isinstance(crafts, list):
         self.crafts = [standardizeString(str(c)).lower() for c in crafts]
     else:
         self.crafts = None
Esempio n. 2
0
 def _set_skills(self, skills):
     if isinstance(skills, str):
         self.skills = [standardizeString(skills).lower()]
     elif isinstance(skills, list):
         self.skills = [standardizeString(str(s)).lower() for s in skills]
     else:
         self.skills = None
Esempio n. 3
0
 def _set_synonyms(self, synonyms):
     if isinstance(synonyms, str):
         self.synonyms = [standardizeString(synonyms).lower()]
     elif isinstance(synonyms, list):
         self.synonyms = [
             standardizeString(str(s)).lower() for s in synonyms
         ]
     else:
         self.synonyms = None
Esempio n. 4
0
 def _set_machine_type(self, machine_type):
     if isinstance(machine_type, str):
         self.machine_type = standardizeString(machine_type).lower()
     else:
         self.machine_type = None
Esempio n. 5
0
 def _set_locasion(self, location):
     if isinstance(location, str):
         self.location = standardizeString(location).lower()
     else:
         self.location = None
Esempio n. 6
0
 def _set_manufacturer(self, manufacturer):
     if isinstance(manufacturer, str):
         self.manufacturer = standardizeString(manufacturer).lower()
     else:
         self.manufacturer = None
Esempio n. 7
0
 def _set_name(self, name):
     if isinstance(name, str):
         self.name = standardizeString(name).lower()
     else:
         self.name = None
Esempio n. 8
0
    def _set_necessary_part(self, necessary_part):

        if isinstance(necessary_part, str):
            self.necessary_part = standardizeString(necessary_part).lower()
        else:
            self.necessary_part = None
Esempio n. 9
0
 def _set_part_in_process(self, part_in_process):
     if isinstance(part_in_process, str):
         self.part_in_process = standardizeString(part_in_process).lower()
     else:
         self.part_in_process = None
Esempio n. 10
0
 def _set_effects(self, effects):
     if isinstance(effects, str):
         self.effects = standardizeString(effects)
     else:
         self.effects = None
Esempio n. 11
0
 def _set_cause(self, cause):
     if isinstance(cause, str):
         self.cause = standardizeString(cause)
     else:
         self.cause = None
Esempio n. 12
0
 def _set_solution(self, solution):
     if isinstance(solution, str) :
         self.solution = standardizeString(solution)
     else:
         self.solution=None
Esempio n. 13
0
 def _set_problem(self, problem):
     if isinstance(problem, str):
         self.problem = standardizeString(problem)
     else:
         self.problem = None
Esempio n. 14
0
 def _set_keyword(self, keyword):
     if isinstance(keyword, str):
         self.keyword = standardizeString(keyword).lower()
     else:
         self.keyword = None