Esempio n. 1
0
 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'])
Esempio n. 2
0
 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)
Esempio n. 3
0
 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' )
         )