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