| 448 | |
| 449 | if len(response.sharedFolderRecords) > 0: |
| 450 | def assign_shared_folder_record(sfr, sf_record): |
| 451 | sf_record['record_key'] = utils.base64_url_encode(sfr.recordKey) |
| 452 | sf_record['can_share'] = sfr.canShare |
| 453 | sf_record['can_edit'] = sfr.canEdit |
| 454 | sf_record['owner'] = sfr.owner |
| 455 | sf_record['owner_account_uid'] = utils.base64_url_encode(sfr.ownerAccountUid or params.account_uid_bytes) |
| 456 | if sfr.expiration > 0: |
| 457 | sf_record['expiration'] = sfr.expiration |
| 458 | |
| 459 | for sfr in response.sharedFolderRecords: |
| 460 | shared_folder_uid = utils.base64_url_encode(sfr.sharedFolderUid) |