Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def make_json(self):
- time_fmt = "%c"
- d = {"subject":self.subject,"content":self.content,
- "created":self.created.strftime(time_fmt),
- "last_modified":self.last_modified.strftime(time_fmt)}
- return d
- def make_dict(self):
- time_format = "%c"
- d = {
- "subject":self.subject,"content":self.content,
- "created":self.created.strftime(time_format),
- "last_modified":self.last_modified.strftime(time_format)
- }
- return d
Add Comment
Please, Sign In to add comment