/b-gtk/fix-viz

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz

« back to all changes in this revision

Viewing changes to viz/treemodel.py

  • Committer: Daniel Schierbeck
  • Date: 2007-12-02 17:04:48 UTC
  • Revision ID: daniel.schierbeck@gmail.com-20071202170448-eoqsh74wrcn5kohm
Made the treeview escape XML in the revision messages.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
import gobject
12
12
import pango
13
13
import re
 
14
from xml.sax.saxutils import escape
14
15
 
15
16
from time import (strftime, localtime)
16
17
 
82
83
            revision = self.revisions[revid]
83
84
        
84
85
        if column == REVISION: return revision
85
 
        if column == MESSAGE: return revision.message.split("\n")[0]
 
86
        if column == MESSAGE: return escape(revision.message.split("\n")[0])
86
87
        if column == COMMITER: return re.sub('<.*@.*>', '', 
87
88
                                             revision.committer).strip(' ')
88
89
        if column == TIMESTAMP: