--- a/TimeTracker/TimeTrackEntry.py Sat Sep 28 13:37:07 2013 +0200 +++ b/TimeTracker/TimeTrackEntry.py Fri Oct 25 18:54:29 2013 +0200 @@ -43,6 +43,7 @@ Special method implementing the less than function. @param other reference to the other object (TimeTrackEntry) + @return flag indicating that self is less than other (boolean) """ return self.__startDateTime < other.getStartDateTime() @@ -218,7 +219,8 @@ if startDateTime.isValid(): self.__startDateTime = startDateTime self.__valid = self.__startDateTime.isValid() and \ - self.__duration >= self.__plugin.getPreferences("MinimumDuration") + self.__duration >= self.__plugin.getPreferences( + "MinimumDuration") def getDuration(self): """ @@ -237,14 +239,15 @@ if duration >= self.__plugin.getPreferences("MinimumDuration"): self.__duration = duration self.__valid = self.__startDateTime.isValid() and \ - self.__duration >= self.__plugin.getPreferences("MinimumDuration") + self.__duration >= self.__plugin.getPreferences( + "MinimumDuration") def addDuration(self, duration): """ Public method to add a duration. - @param duration duration to be added in minutes (integer). Negative values - are ignored. + @param duration duration to be added in minutes (integer). Negative + values are ignored. """ if duration > 0: self.__duration += duration @@ -289,9 +292,9 @@ """ Public method to get the entry data. - @return entry data as a tuple of start date (string), start time (string), - duration (integer), task (string), comment (string) and flag indicating - a paused state (boolean) + @return entry data as a tuple of start date (string), start time + (string), duration (integer), task (string), comment (string) + and flag indicating a paused state (boolean) """ return ( self.__id,