Exemple #1
0
 def get_sn(self):
     try:
         values = parse_message(self.data[1])
         sn = values['SN']
     except TemplateError:
         return None
     return sn
Exemple #2
0
 def get_id(self):
     try:
         values = parse_message(self.data[1])
         _id = values['ID']
     except TemplateError:
         return None
     return _id