MCPcopy Create free account
hub / github.com/PageBot/PageBot / compose

Method compose

Lib/pagebot/elements/page.py:406–413  ·  view source on GitHub ↗

Recusively compose Page and add it to doc. Note that this will alter the self.parent to doc. The recursively pass the composing on to the page elements, which at that time can use the full document style settings by e.css(...).

(self, doc, publication)

Source from the content-addressed store, hash-verified

404 # C O M P O S I T I O N S U P P O R T
405
406 def compose(self, doc, publication):
407 """Recusively compose Page and add it to doc. Note that this will alter
408 the self.parent to doc. The recursively pass the composing on to the
409 page elements, which at that time can use the full document style
410 settings by e.css(...)."""
411 doc.appendPage(self)
412 for e in self.elements:
413 e.compose(doc, publication)
414
415 # D R A W B O T & F L A T S U P P O R T
416

Callers

nothing calls this directly

Calls 1

appendPageMethod · 0.80

Tested by

no test coverage detected