Bibliography - applebiter/gnatwriter GitHub Wiki
The Bibliography class represents a reference to another work, associated with a given Story. My preference would have been to name this class "Reference", but that was going to be problematic as the name for a database table. The Bibliography class is associated with the bibliographies table in the database.
Attributes
The attributes that are mapped to the bibliographies table in the database:
id: intThe Bibliography IDuser_id: intThe ID of the user who created this Bibliography entrystory_id: intThe Story ID that this Bibliography referencestitle: strThe referenced work's titlepages: strThe pertinent pages of the referenced workpublisher: strThe referenced work's publisherpublication_date: strThe referenced work's publication date in date form: yyy-mm-ddeditor: strThe referenced work's editorcreated: strThe referenced work's creation date in datetime form: yyy-mm-dd hh:mm:ssmodified: strThe referenced work's last modification date in datetime form: yyy-mm-dd hh:mm:ss
The complex attributes supplied by the ORM:
user: UserThe user who created this Bibliography entry. The User class is associated with theuserstable in the database.story: StoryThe Story to which this Bibliography entry belongs. The Story class is associated with thestoriestable in the database.authors: List[BibliographyAuthor]The author(s) of the referenced work. The BibliographyyAuthor class is associated with thebibliographies_authorstable in the database.
serialize()
serialize ( ) -> dict Only the attributes mapped to the bibliographies table will be present in the returned dictionary.