Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/poll.py
diff options
context:
space:
mode:
Diffstat (limited to 'poll.py')
-rw-r--r--poll.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/poll.py b/poll.py
index 6b0ba72..1a581e0 100644
--- a/poll.py
+++ b/poll.py
@@ -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: