mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-26 15:57:16 +00:00
chg: [AIL2AIL Sync] update exchange format
This commit is contained in:
parent
b9ad0b1bce
commit
2300751e9c
2 changed files with 2 additions and 2 deletions
|
@ -79,7 +79,7 @@ class Sync_importer(AbstractModule):
|
||||||
b64_gzip_content = ail_stream['payload']['raw']
|
b64_gzip_content = ail_stream['payload']['raw']
|
||||||
|
|
||||||
# # TODO: create default id
|
# # TODO: create default id
|
||||||
item_id = ail_stream['meta']['ail:id'] + 'test'
|
item_id = ail_stream['meta']['ail:id']
|
||||||
|
|
||||||
message = f'{item_id} {b64_gzip_content}'
|
message = f'{item_id} {b64_gzip_content}'
|
||||||
print(item_id)
|
print(item_id)
|
||||||
|
|
|
@ -1205,7 +1205,7 @@ def create_ail_stream(Object):
|
||||||
'type': Object.get_type()}
|
'type': Object.get_type()}
|
||||||
|
|
||||||
# OBJECT META
|
# OBJECT META
|
||||||
ail_stream['meta'] = {'ail:mime-type': 'text/plain'}
|
ail_stream['meta'] = {'mime-type': 'text/plain'}
|
||||||
ail_stream['meta']['compress'] = 'gzip'
|
ail_stream['meta']['compress'] = 'gzip'
|
||||||
ail_stream['meta']['encoding'] = 'base64'
|
ail_stream['meta']['encoding'] = 'base64'
|
||||||
ail_stream['meta']['ail:id'] = Object.get_id()
|
ail_stream['meta']['ail:id'] = Object.get_id()
|
||||||
|
|
Loading…
Reference in a new issue