ContributorCollection class

ContributorCollection class

Represents bibliography source contributors.

Properties

NameDescription
artistGets the artist of a source.
authorGets the author of a source.
book_authorGets the book author of a source.
compilerGets the compiler of a source.
composerGets the composer of a source.
conductorGets the conductor of a source.
counselGets the counsel of a source.
directorGets the director of a source.
editorGets the editor of a source.
intervieweeGets the interviewee of a source.
interviewerGets the interviewer of a source.
inventorGets the inventor of a source.
performerGets the performer of a source.
producerGets the producer of a source.
translatorGets the translator of a source.
writerGets the writer of a source.

Examples

Shows how to get bibliography sources available in the document.

document = aw.Document(MY_DIR + 'Bibliography sources.docx')
bibliography = document.bibliography
self.assertEqual(12, len(bibliography.sources))
source = bibliography.sources[0]
self.assertEqual('Book 0 (No LCID)', source.title)
authors = source.contributors.author.as_person_collection()
self.assertEqual(2, authors.count)
person = authors[0]
self.assertEqual('Roxanne', person.first)
self.assertEqual('Brielle', person.middle)
self.assertEqual('Tejeda', person.last)

See Also