"""xmltodict related constants.""" # These are fields that are known to contain multiple values. # We can force these fields to always be parsed into a list. # If only one value is present in this field from DDEX then # xmltodict makes that field a dictionary rather than a list. # This is obviously a headache when it comes to parsing data # later on. DDEX_LIST_FIELDS = ( 'Deal', 'ReleaseDeal', 'DealResourceReference', 'DealReleaseReference', 'CommercialModelType', 'TerritoryCode', 'UseType', 'SoundRecording', 'ResourceGroupContentItem', 'PartyName', 'PartyId', 'Store', 'TechnicalSoundRecordingDetails', 'TechnicalVideoDetails', 'ReleaseDetailsByTerritory', 'DisplayArtist', 'ArtistRole', 'ResourceContributor', 'ResourceContributorRole', 'IndirectResourceContributor', 'IndirectResourceContributorRole', 'Publisher', 'Title', 'ArtistId', 'Genre', 'Track', 'Keywords', 'RelatedRelease', 'LabelName', 'ExcludedTerritoryCode', 'Text', )