diff options
author | Agustin Zubiaga <aguz@sugarlabs.org> | 2012-02-24 23:51:21 (GMT) |
---|---|---|
committer | Agustin Zubiaga <aguz@sugarlabs.org> | 2012-02-24 23:51:21 (GMT) |
commit | 15ef1be5005b4a46032ee46a58ecabac41debb0b (patch) | |
tree | d1545afecb81dad15394bf7a47563c77bf86550a | |
parent | bb14c11f1fe71a0dc75ca7e6051f4e49c77ddf1e (diff) |
Docstring for the stopwatch reader (Manu Q)
-rw-r--r-- | activity.py | 2 | ||||
-rw-r--r-- | readers.py | 7 |
2 files changed, 8 insertions, 1 deletions
diff --git a/activity.py b/activity.py index f2896f2..45e1111 100644 --- a/activity.py +++ b/activity.py @@ -496,7 +496,7 @@ class SimpleGraph(activity.Activity): if sharer: _logger.debug('This is my activity: making a tube...') - id = self.tubes_chan[telepathy.CHANNEL_TYPE_TUBES].OfferDBusTube( + self.tubes_chan[telepathy.CHANNEL_TYPE_TUBES].OfferDBusTube( SERVICE, {}) else: _logger.debug('I am joining an activity: waiting for a tube...') @@ -26,6 +26,13 @@ from gettext import gettext as _ class StopWatchReader(): + """Reader for StopWatch activity. + + If the data has only one stopwatch with marks, graphic the marks. + Else, graphic the final time of the stopwatches. + + """ + def __init__(self, data): """Import chart data from file.""" |