コード例 #1
0
ファイル: edit_activity.py プロジェクト: mwilck/hamster
 def localized_fact(self):
     """Make sure fact has the correct start_time."""
     fact = Fact(self.activity.get_text())
     if fact.start_time:
         fact.date = self.date
     else:
         fact.start_time = dt.datetime.now()
     return fact
コード例 #2
0
ファイル: edit_activity.py プロジェクト: shaform/hamster
 def localized_fact(self):
     """makes sure fact is in our date"""
     fact = Fact(self.activity.get_text())
     fact.date = self.date
     return fact