| 432 | |
| 433 | if len(response.sharedFolderRecords) > 0: |
| 434 | def assign_shared_folder_record(sfr, sf_record): |
| 435 | sf_record['record_key'] = utils.base64_url_encode(sfr.recordKey) |
| 436 | sf_record['can_share'] = sfr.canShare |
| 437 | sf_record['can_edit'] = sfr.canEdit |
| 438 | sf_record['owner'] = sfr.owner |
| 439 | sf_record['owner_account_uid'] = utils.base64_url_encode(sfr.ownerAccountUid or params.account_uid_bytes) |
| 440 | if sfr.expiration > 0: |
| 441 | sf_record['expiration'] = sfr.expiration |
| 442 | |
| 443 | for sfr in response.sharedFolderRecords: |
| 444 | shared_folder_uid = utils.base64_url_encode(sfr.sharedFolderUid) |