akvo.iati.exports.iati_org_export module

class akvo.iati.exports.iati_org_export.IatiOrgXML(organisations, version='2.03', excluded_elements=None, context=None, utc_now: datetime | None = None)[source]

Bases: object

add_organisation(organisation)[source]

Adds an organisation to the IATI organisation XML.

Parameters:

organisation – Organisation object

save_file(org_id, filename)[source]

Export the etree to a file.

Parameters:
  • org – String of Organisation id

  • filename – String of the file name

Returns:

File path