~kklimonda/ubuntu/lucid/hamster-applet/lucid-proposed

« back to all changes in this revision

Viewing changes to hamster/reports.py

  • Committer: Bazaar Package Importer
  • Author(s): Pedro Fragoso
  • Date: 2008-09-08 17:37:05 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20080908173705-wvbg8ciiprf2lyoc
Tags: 2.23.92-0ubuntu1
* New upstream release (LP: #262744)
  - fixed code so that it works also with Python 2.4
  - Fixed bug with tasks falling into unsorted category (bug #548914)
  - Fixed error when switching tasks with doubleclick
  - Bump up pygtk and libgtk to 2.12, pyobject to 2.14
    intltool to 0.37.1
  - Downgrade XS-python and python b-d and depends to 2.4
* debian/control:
  - Change Homepage field to GNOME url
 

Show diffs side-by-side

added added

removed removed

Lines of Context:
93
93
            delta = end_time - fact["start_time"]
94
94
            duration = 24 * delta.days + delta.seconds / 60
95
95
        
96
 
        end_time_str = end_time.strftime('%H:%M') if end_time else ""
 
96
        end_time_str = ""
 
97
        if end_time:
 
98
            end_time_str = end_time.strftime('%H:%M')
97
99
 
 
100
        category = ""
 
101
        if fact["category"] != _("Unsorted"): #do not print "unsorted"
 
102
            category = fact["category"]
98
103
 
99
104
        report.write("""<tr>
100
105
                            <td>%s</td>
105
110
                            <td>%s</td>
106
111
</tr>""" % (fact["start_time"].strftime("%d.%m.%y"),
107
112
            fact["name"],
108
 
            fact["category"] if fact["category"] != _("Unsorted") else "", #do not print unsorted
 
113
            category, 
109
114
            fact["start_time"].strftime('%H:%M'),
110
115
            end_time_str,
111
116
            stuff.format_duration(duration)))