示例#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'])
示例#2
0
文件: tests.py 项目: tjspross/Trolly
 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)
示例#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' )
         )