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

« back to all changes in this revision

Viewing changes to hamster/add_custom_fact.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:
139
139
 
140
140
        if selected == 1:
141
141
            # selected to enter end date and time
142
 
            self.get_widget("end_time").set_text(self.get_widget('start_time').get_text())
 
142
            start_date = datetime.datetime.fromtimestamp(self.get_widget('start_date').get_time())
 
143
            if start_date.date() == datetime.date.today():  #in case of today let's add the end time as right now
 
144
                end_time = time.strftime("%H:%M")
 
145
            else: #otherwise settle to the one we have in start time
 
146
                end_time = self.get_widget('start_time').get_text()
 
147
 
 
148
            # and set end_time only if it has not been specified before
 
149
            if self.get_widget('end_time').get_text() == '':
 
150
                self.get_widget('end_time').set_text(end_time)
 
151
 
143
152
            self.get_widget("fact_end_until").show()
144
153
        
145
154
        elif selected == 2: