Skip to main content
Version: Next

PlyBook

class compolyx.PlyBook(name='PlyBook', parent=None, reST_ply='', reST_chapter='', reST_title_page='', scene=None)

Class to represent a ply book.

Attributes

NameDescription
PlyBook.chaptersDictionary with all chapters defined
PlyBook.is_dict_itemSpecifies whether the object is an item of a dict
PlyBook.is_list_itemSpecifies whether the object is an item of a list
PlyBook.link_pathRoot path of the current node in the tree for links to this object
PlyBook.nameName of object
PlyBook.parentParent object in tree
PlyBook.reST_chapterreST chapter template
PlyBook.reST_plyreST ply template
PlyBook.reST_title_pagereST title page template
PlyBook.root_pathRoot path of the current node in the tree
PlyBook.scene

Methods

NameDescription
PlyBook.automatic_setup()
PlyBook.create_chapter(name[, view, ...])Add a chapter to the ply book
PlyBook.find_parent(type)Function steps up the tree and returns the first parent with given type
PlyBook.generate(filename[, format])Generate the complete plybook
PlyBook.initialize_plybook(**kwargs)
PlyBook.serialize()
PlyBook.update()
PlyBook.visit(visitor)Walk through the tree and let the visitor perform action on every descendant node