/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-11-05 17:16:09 UTC
  • Revision ID: daniel.schierbeck@gmail.com-20071105171609-p6epw1auedpvlcer
Simplified date format.

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
import pango
13
13
import re
14
14
 
15
 
from bzrlib.osutils import format_date
 
15
from time import (strftime, localtime)
16
16
 
17
17
REVID = 0
18
18
NODE = 1
85
85
        if column == MESSAGE: return revision.message.split("\n")[0]
86
86
        if column == COMMITER: return re.sub('<.*@.*>', '', 
87
87
                                             revision.committer).strip(' ')
88
 
        if column == TIMESTAMP: return format_date(revision.timestamp,
89
 
                                                   revision.timezone)
90
 
    
 
88
        if column == TIMESTAMP: 
 
89
            return strftime("%Y-%m-%d %H:%M", localtime(revision.timestamp))
 
90
 
91
91
    def on_iter_next(self, rowref):
92
92
        if rowref < len(self.line_graph_data) - 1:
93
93
            return rowref+1