| 299 | |
| 300 | if len(response.teams) > 0: |
| 301 | def assign_team(t, team): |
| 302 | team['name'] = t.name |
| 303 | team['team_key'] = utils.base64_url_encode(t.teamKey) |
| 304 | team['team_key_type'] = t.teamKeyType |
| 305 | team['restrict_edit'] = t.restrictEdit |
| 306 | team['restrict_share'] = t.restrictShare |
| 307 | team['restrict_view'] = t.restrictView |
| 308 | if len(t.teamEccPrivateKey) > 0: |
| 309 | team['team_ec_private_key'] = utils.base64_url_encode(t.teamEccPrivateKey) |
| 310 | if len(t.teamPrivateKey) > 0: |
| 311 | team['team_private_key'] = utils.base64_url_encode(t.teamPrivateKey) |
| 312 | |
| 313 | for t in response.teams: |
| 314 | team_uid = utils.base64_url_encode(t.teamUid) |