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

Method __setitem__

Lib/pagebot/document.py:271–275  ·  view source on GitHub ↗
(self, pn, page)

Source from the content-addressed store, hash-verified

269 return None
270
271 def __setitem__(self, pn, page):
272 if not pn in self.pages: # Add list as
273 self.pages[pn] = []
274 self.pages[pn].append(page)
275 page.setParent(self)
276
277 def _get_ancestors(self):
278 """Root of the chain of element properties, searching upward in the

Callers

nothing calls this directly

Calls 2

setParentMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected