MCPcopy Create free account
hub / github.com/Distrotech/reportlab / endFunction

Method endFunction

tools/docco/graphdocpy.py:369–386  ·  view source on GitHub ↗

Append a drawing to the story for special function names.

(self, name, doc, sig)

Source from the content-addressed store, hash-verified

367
368
369 def endFunction(self, name, doc, sig):
370 "Append a drawing to the story for special function names."
371
372 if name[:6] != 'sample':
373 return
374
375 if VERBOSE:
376 print 'GraphPdfDocBuilder.endFunction(%s...)' % name
377 PdfDocBuilder0.endFunction(self, name, doc, sig)
378 aFunc = eval('self.skeleton.moduleSpace.' + name)
379 drawing = aFunc()
380
381 self.story.append(Spacer(0*cm, 0.5*cm))
382 self._showFunctionDemoCode(aFunc)
383 self.story.append(Spacer(0*cm, 0.5*cm))
384 self._showDrawingDemo(drawing)
385
386 self.story.append(PageBreak())
387
388
389 def _showFunctionDemoCode(self, function):

Callers 1

endFunctionMethod · 0.45

Calls 5

_showFunctionDemoCodeMethod · 0.95
_showDrawingDemoMethod · 0.95
SpacerClass · 0.90
PageBreakClass · 0.90
appendMethod · 0.80

Tested by

no test coverage detected