-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
Hi Joel,
Looking for clarification on how to write PREMIS events using this. If I try the following:
ev = premisrw.PREMISEvent()
ev.event_type = "AM CAMP DEMO"
ev.event_outcome_detail = "SUCCESS"
ev.event_outcome_detail_note = "dag iedereen!"
ev.linking_agent_identifier_type = "python script"
ev.linking_agent_identifier_value = "1.0"
print ev.generate_dataThen the default values for the object are output and no more:
<bound method PREMISEvent.generate_data of ('event',
{'xsi:schema_location': 'info:lc/xmlns/premis-v2 http://www.loc.gov/standards/premis/v2/premis-v2-2.xsd', 'version': '2.2'},
('event_identifier', ('event_identifier_type', 'UUID'),
('event_identifier_value', 'aa4f20ef-678e-4b07-9bb6-0f875930ddaa')),
('event_date_time', '2020-09-03T14:44:33'))>I am currently only able to create an event object and output it to XML by creating a tuple using the technique outlined here.
I guess, am I missing something?
Metadata
Metadata
Assignees
Labels
No labels