~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to ivle/webapp/filesystem/diff/__init__.py

  • Committer: William Grant
  • Date: 2009-04-06 07:21:08 UTC
  • Revision ID: grantw@unimelb.edu.au-20090406072108-coc90olxzrkjnr90
Show the filename in a diff view.

Show diffs side-by-side

added added

removed removed

Lines of Context:
73
73
            r'^Index: (.*)\n\=+\n((?:[^I].*\n)*)',re.MULTILINE
74
74
        )
75
75
 
 
76
        ctx['title'] = self.path.rsplit('/', 1)[-1]
 
77
 
76
78
        # Create a dict with (name, HTMLdiff) pairs for each non-empty diff.
77
79
        ctx['files'] = dict([(fd[0], genshi.XML(htmlfy_diff(fd[1])))
78
80
                             for fd in diff_matcher.findall(diff)