def create_checklist(self, checklist_json): """ Create a Checklist object from JSON object """ return Checklist(trello_client=self, checklist_id=checklist_json['id'], name=checklist_json['name'])
def setUp(self): self.client = Client(api_key, user_auth_token) self.org = Organisation(self.client, organisation) self.board = Board(self.client, board_id) self.list = List(self.client, list_id) self.card = Card(self.client, card_id) self.checklist = Checklist(self.client, checklist_id) self.member = Member(self.client, member_id)
def createChecklist( self, checklist_json ): """ Create a Checklist object from JSON object """ return Checklist( trello_client = self, checklist_id = checklist_json['id'].encode('utf-8'), name = checklist_json['name'].encode( 'utf-8' ) )