diff options
author | flavio <fdanesse@gmail.com> | 2013-08-13 21:14:41 (GMT) |
---|---|---|
committer | flavio <fdanesse@gmail.com> | 2013-08-13 21:14:41 (GMT) |
commit | 29016e5148d2f7f1f9895c5e32665c886f1ee406 (patch) | |
tree | 9b49150d4330a13a9f4111ccdc88f30677076f68 /poll.py | |
parent | 889a4ee69481fd7a38bf701953e4c18221fc9016 (diff) |
Correcciones
Diffstat (limited to 'poll.py')
-rw-r--r-- | poll.py | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -88,7 +88,7 @@ class PollBuilder(activity.Activity): self._logger = logging.getLogger('poll-activity') self._logger.debug('Starting Poll activity') - self._polls = [] + self._polls = set() self.current_vote = None self._current_view = None self._previewing = False @@ -188,7 +188,7 @@ class PollBuilder(activity.Activity): self._logger.debug('Reading file from datastore via Journal: %s' % file_path) - self._polls = [] + self._polls = set() f = open(file_path, 'r') num_polls = cPickle.load(f) @@ -221,7 +221,7 @@ class PollBuilder(activity.Activity): maxvoters, question, number_of_options, options, data, votes, images, images_ds_object) - self._polls.append(poll) + self._polls.add(poll) f.close() @@ -377,8 +377,7 @@ class PollBuilder(activity.Activity): else: cabecera = _('Poll Preview') - - return + self.set_canvas(PollCanvas(cabecera, self._poll, self.current_vote, self._view_answer, self._previewing)) else: |