Beispiel #1
0
 def create_organisation(self, organisation_json):
     """
     Create an Organisation object from a JSON object
     """
     return Organisation(trello_client=self,
                         organisation_id=organisation_json['id'],
                         name=organisation_json['name'])
Beispiel #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)
Beispiel #3
0
 def createOrganisation( self, organisation_json ):
     """
     Create an Organisation object from a JSON object
     """
     return Organisation(
             trello_client = self,
             organisation_id = organisation_json['id'].encode('utf-8'),
             name = organisation_json['name'].encode( 'utf-8' )
         )
Beispiel #4
0
 def __init__(self, trConfig):
     super(TrelloClient, self).__init__()
     self.trConfig = trConfig
     self.trClient = Client(self.trConfig['key'], self.trConfig['token'])
     self.org = Organisation(self.trClient, self.trConfig['orgid'])
     self.getBoards(self.trConfig['boards'].keys())