ContributorCollection class

ContributorCollection class

Represents bibliography source contributors.

Properties

NameDescription
artistGets or sets the artist of a source.
authorGets or sets the author of a source.
book_authorGets or sets the book author of a source.
compilerGets or sets the compiler of a source.
composerGets or sets the composer of a source.
conductorGets or sets the conductor of a source.
counselGets or sets the counsel of a source.
directorGets or sets the director of a source.
editorGets or sets the editor of a source.
intervieweeGets or sets the interviewee of a source.
interviewerGets or sets the interviewer of a source.
inventorGets or sets the inventor of a source.
performerGets or sets the performer of a source.
producerGets or sets the producer of a source.
translatorGets or sets the translator of a source.
writerGets or sets 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