Mercurial > libervia-backend
comparison sat/plugins/plugin_comp_ap_gateway/http_server.py @ 4009:48e8b3dba793
component AP gateway (http/outbox): return data when no RSM is available
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 16 Mar 2023 15:56:11 +0100 |
parents | 54a6b44f173b |
children | 4ef473116499 |
comparison
equal
deleted
inserted
replaced
4008:56e5b18f4d06 | 4009:48e8b3dba793 |
---|---|
719 "id": url, | 719 "id": url, |
720 "type": "OrderedCollectionPage", | 720 "type": "OrderedCollectionPage", |
721 "partOf": base_url, | 721 "partOf": base_url, |
722 "orderedItems": ordered_items | 722 "orderedItems": ordered_items |
723 } | 723 } |
724 | |
725 if "rsm" not in metadata: | |
726 # no RSM available, we return what we have | |
727 return ret_data | |
724 | 728 |
725 # AP OrderedCollection must be in reversed chronological order, thus the opposite | 729 # AP OrderedCollection must be in reversed chronological order, thus the opposite |
726 # of what we get with RSM (at least with Libervia Pubsub) | 730 # of what we get with RSM (at least with Libervia Pubsub) |
727 if not metadata["complete"]: | 731 if not metadata["complete"]: |
728 try: | 732 try: |