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

Method findPage

Lib/pagebot/document.py:957–963  ·  view source on GitHub ↗

Answers the first page found from the self.findPages(...) call. Answers None if no page can be found matching the parameters.

(self, eId=None, name=None, pattern=None, pageSelection=None)

Source from the content-addressed store, hash-verified

955 return pages
956
957 def findPage(self, eId=None, name=None, pattern=None, pageSelection=None):
958 """Answers the first page found from the self.findPages(...) call. Answers None
959 if no page can be found matching the parameters."""
960 pages = self.findPages(eId=eId, name=name, pattern=pattern, pageSelection=pageSelection)
961 if pages:
962 return pages[0]
963 return None
964
965 def findBysId(self, sId):
966 """If defined, the system self.sId can be used to recursively find self

Callers

nothing calls this directly

Calls 1

findPagesMethod · 0.95

Tested by

no test coverage detected