Example #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
Example #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
Example #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
Example #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
Example #5
0
 def _set_locasion(self, location):
     if isinstance(location, str):
         self.location = standardizeString(location).lower()
     else:
         self.location = None
Example #6
0
 def _set_manufacturer(self, manufacturer):
     if isinstance(manufacturer, str):
         self.manufacturer = standardizeString(manufacturer).lower()
     else:
         self.manufacturer = None
Example #7
0
 def _set_name(self, name):
     if isinstance(name, str):
         self.name = standardizeString(name).lower()
     else:
         self.name = None
Example #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
Example #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
Example #10
0
 def _set_effects(self, effects):
     if isinstance(effects, str):
         self.effects = standardizeString(effects)
     else:
         self.effects = None
Example #11
0
 def _set_cause(self, cause):
     if isinstance(cause, str):
         self.cause = standardizeString(cause)
     else:
         self.cause = None
Example #12
0
 def _set_solution(self, solution):
     if isinstance(solution, str) :
         self.solution = standardizeString(solution)
     else:
         self.solution=None
Example #13
0
 def _set_problem(self, problem):
     if isinstance(problem, str):
         self.problem = standardizeString(problem)
     else:
         self.problem = None
Example #14
0
 def _set_keyword(self, keyword):
     if isinstance(keyword, str):
         self.keyword = standardizeString(keyword).lower()
     else:
         self.keyword = None