209 """ |
209 """ |
210 self.__comment = comment.replace("\r\n", " ")\ |
210 self.__comment = comment.replace("\r\n", " ")\ |
211 .replace("\n", " ")\ |
211 .replace("\n", " ")\ |
212 .replace("\r", " ") |
212 .replace("\r", " ") |
213 |
213 |
|
214 def addDuration(self, duration): |
|
215 """ |
|
216 Public method to add a duration. |
|
217 |
|
218 @param duration duration to be added in minutes (integer). Negative values |
|
219 are ignored. |
|
220 """ |
|
221 if duration > 0: |
|
222 self.__duration += duration |
|
223 |
214 def getEntryData(self): |
224 def getEntryData(self): |
215 """ |
225 """ |
216 Public method to get the entry data. |
226 Public method to get the entry data. |
217 |
227 |
218 @return entry data as a tuple of start date (string), start time (string), |
228 @return entry data as a tuple of start date (string), start time (string), |