l.c.b.b.DiffRenderingMixin : class documentation

Part of lp.code.browser.branchmergeproposal View In Hierarchy

Known subclasses: lp.code.browser.branchmergeproposal.BranchMergeProposalView, lp.code.browser.branchmergeproposal.FormatPreviewDiffView

A mixin class for handling diff text.
Method diff_available Is the preview diff available from the librarian?
Method preview_diff_text Return a (hopefully) intelligently encoded review diff.
Method diff_oversized Return True if the preview_diff is over the configured size limit.
@property
def diff_available(self):
Is the preview diff available from the librarian?
@cachedproperty
def preview_diff_text(self):
Return a (hopefully) intelligently encoded review diff.
@cachedproperty
def diff_oversized(self):
Return True if the preview_diff is over the configured size limit.

The diff can be over the limit in two ways. If the diff is oversized in bytes it will be cut off at the Diff.text method. If the number of lines is over the max_format_lines, then it is cut off at the fmt:diff processing.

API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.