コード例 #1
0
ファイル: ECAssignment.py プロジェクト: dtgit/dtedu
 def dotplot(self, other):  # , REQUEST=None):
     """Compare this assignment to another one. Using a dotplot.
     """
     vis = PlagVisualizer()
     image = vis.stringsToDotplot(
         str(self.getFile()),
         str(other.getFile()),
         id1=self.pretty_title_or_id(),
         id2=other.pretty_title_or_id(),
         showIdNums=True,
     )
     return image