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
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
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
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
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
def serialize(self): d = Serializer.serialize(self) return d
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
def serialize(self): d = Serializer.serialize(self) d['cre_dt'] = d['cre_dt'].strftime("%Y-%m-%d %H-%M-%S") return d
def serialize(self): d = Serializer.serialize(self) d['cre_dt'] = self.cre_dt.strftime("%Y-%m-%d") return d
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