示例#1
0
 def get_issue_code_choices(self):
     """
     Returns the possible issue codes for the current symptom code
     """
     # @fixme: what if it's someone else ordering the part?
     self.gsx_account.connect(self.created_by)
     ckey = 'issue_codes-%s' % self.symptom_code
     si = SymptomIssue(reportedSymptomCode=self.symptom_code)
     return cache_getset(ckey, si.fetch)
示例#2
0
 def get_symptom_code_choices(self):
     """
     Returns the possible symptom codes for the current serial number
     """
     # @fixme: what if it's someone else ordering the part?
     self.gsx_account.connect(self.created_by)
     ckey = 'symptom_codes-%s' % self.device.sn
     si = SymptomIssue(serialNumber=self.device.sn)
     return cache_getset(ckey, si.fetch)
示例#3
0
文件: repair.py 项目: fpsw/Servo
 def get_issue_code_choices(self):
     """
     Returns the possible issue codes for the current symptom code
     """
     # @fixme: what if it's someone else ordering the part?
     self.gsx_account.connect(self.created_by)
     ckey = "issue_codes-%s" % self.symptom_code
     si = SymptomIssue(reportedSymptomCode=self.symptom_code)
     return cache_getset(ckey, si.fetch)
示例#4
0
文件: repair.py 项目: fpsw/Servo
 def get_symptom_code_choices(self):
     """
     Returns the possible symptom codes for the current serial number
     """
     # @fixme: what if it's someone else ordering the part?
     self.gsx_account.connect(self.created_by)
     ckey = "symptom_codes-%s" % self.device.sn
     si = SymptomIssue(serialNumber=self.device.sn)
     return cache_getset(ckey, si.fetch)
示例#5
0
文件: repair.py 项目: filipp/Servo
 def get_issue_code_choices(self):
     # @fixme: what if it's someone else ordering the part?
     self.gsx_account.connect(self.created_by)
     ckey = 'issue_codes-%s' % self.symptom_code
     si = SymptomIssue(reportedSymptomCode=self.symptom_code)
     return cache_getset(ckey, si.fetch)
示例#6
0
文件: repair.py 项目: filipp/Servo
 def get_symptom_code_choices(self):
     # @fixme: what if it's someone else ordering the part?
     self.gsx_account.connect(self.created_by)
     ckey = 'symptom_codes-%s' % self.device.sn
     si = SymptomIssue(serialNumber=self.device.sn)
     return cache_getset(ckey, si.fetch)