Advertisement
Guest User

Untitled

a guest
Mar 20th, 2019
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. class CaseTask(JSONSerializable):
  2.  
  3. def __init__(self, **attributes):
  4. if attributes.get('json', False):
  5. attributes = attributes['json']
  6.  
  7. self.title = attributes.get('title', None)
  8. self.status = attributes.get('status', 'Waiting')
  9. self.flag = attributes.get('flag', False)
  10. self.description = attributes.get('description', None)
  11. self.owner = attributes.get('owner', None)
  12. self.startDate = attributes.get('startDate', None)
  13. self.group = attributes.get('group', None)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement