| 315 | |
| 316 | if len(response.teams) > 0: |
| 317 | def assign_team(t, team): |
| 318 | team['name'] = t.name |
| 319 | team['team_key'] = utils.base64_url_encode(t.teamKey) |
| 320 | team['team_key_type'] = t.teamKeyType |
| 321 | team['restrict_edit'] = t.restrictEdit |
| 322 | team['restrict_share'] = t.restrictShare |
| 323 | team['restrict_view'] = t.restrictView |
| 324 | if len(t.teamEccPrivateKey) > 0: |
| 325 | team['team_ec_private_key'] = utils.base64_url_encode(t.teamEccPrivateKey) |
| 326 | if len(t.teamPrivateKey) > 0: |
| 327 | team['team_private_key'] = utils.base64_url_encode(t.teamPrivateKey) |
| 328 | |
| 329 | for t in response.teams: |
| 330 | team_uid = utils.base64_url_encode(t.teamUid) |