Esempio n. 1
0
 def serialize(self):
     d = Serializer.serialize(self)
     del d['source_commonCode']
     d['source_name'] = self.source_commonCode.EXT1
     d['source_code'] = self.source_commonCode.Code
     d['cre_dt'] = self.cre_dt.strftime("%Y-%m-%d")
     return d
Esempio n. 2
0
 def serialize(self):
     d = Serializer.serialize(self)
     d['cre_dt'] = self.cre_dt.strftime(
         "%Y-%m-%d %H:%M:%S") if self.cre_dt is not None else ''
     d['mod_dt'] = self.mod_dt.strftime(
         "%Y-%m-%d %H:%M:%S") if self.mod_dt is not None else ''
     return d
Esempio n. 3
0
 def serialize(self):
     d = Serializer.serialize(self)
     del d['rule_type_commonCode']
     d['type_name'] = self.rule_type_commonCode.EXT1 if self.rule_type_commonCode is not None else ""
     del d['source_commonCode']
     d['source_name'] = self.source_commonCode.EXT1 if self.rule_type_commonCode is not None else ""
     d['source_code'] = self.source_commonCode.Code if self.rule_type_commonCode is not None else ""
     d['cre_dt'] = self.cre_dt.strftime("%Y-%m-%d")
     return d
Esempio n. 4
0
 def serialize(self):
     d = Serializer.serialize(self)
     del d['source_commonCode']
     d['source_name'] = self.source_commonCode.EXT1
     d['source_code'] = self.source_commonCode.Code
     d['cre_dt'] = self.cre_dt.strftime(
         "%Y-%m-%d %H:%M:%S"
     )  #New requirement hour, min, second format added
     return d
Esempio n. 5
0
 def serialize(self):
     self.getSectorList()
     d = Serializer.serialize(self)
     d['cre_dt'] = self.cre_dt.strftime("%Y-%m-%d %H:%M:%S")
     d['mod_dt'] = self.mod_dt.strftime(
         "%Y-%m-%d %H:%M:%S"
     ) if self.mod_dt is not None else self.cre_dt.strftime(
         "%Y-%m-%d %H:%M:%S")
     d['sector_list'] = self.sector_list
     return d
Esempio n. 6
0
 def serialize(self):
     d = Serializer.serialize(self)
     return d
Esempio n. 7
0
 def serialize(self):
     d = Serializer.serialize(self)
     # d['cre_dt'] = self.cre_dt.strftime("%Y-%m-%d") if self.cre_dt is not None else ''
     return d
Esempio n. 8
0
 def serialize(self):
     d = Serializer.serialize(self)
     d['cre_dt'] = d['cre_dt'].strftime("%Y-%m-%d %H-%M-%S")
     return d
Esempio n. 9
0
 def serialize(self):
     d = Serializer.serialize(self)
     d['cre_dt'] = self.cre_dt.strftime("%Y-%m-%d")
     return d
Esempio n. 10
0
 def serialize(self):
     d = Serializer.serialize(self)
     del d['dna']
     d['cre_dt'] = self.cre_dt.strftime("%Y-%m-%d %H:%M:%S")
     d['start_time'] = self.start_time.strftime("%Y-%m-%d %H:%M:%S")
     return d