comparison sat/plugins/plugin_comp_ap_gateway/events.py @ 4023:78b5f356900c

component AP gateway: handle attachments
author Goffi <goffi@goffi.org>
date Thu, 23 Mar 2023 15:42:21 +0100
parents 0aa7023dcd08
children 26c3e1bc7fb7
comparison
equal deleted inserted replaced
4022:cdb7de398c85 4023:78b5f356900c
228 "propertyID": "mz:accessibility:wheelchairAccessible", 228 "propertyID": "mz:accessibility:wheelchairAccessible",
229 "type": "PropertyValue", 229 "type": "PropertyValue",
230 "value": ap_wc_value 230 "value": ap_wc_value
231 }) 231 })
232 232
233 activity = self.apg.createActivity( 233 activity = self.apg.create_activity(
234 "Create" if is_new else "Update", url_actor, ap_object, activity_id=url_item 234 "Create" if is_new else "Update", url_actor, ap_object, activity_id=url_item
235 ) 235 )
236 activity["@context"].append(AP_EVENTS_CONTEXT) 236 activity["@context"].append(AP_EVENTS_CONTEXT)
237 return activity 237 return activity
238 238