def story(self): story, tmp = Question.story(self) if self.obj.calculate.count: for i in range(len(self.obj.calculate.values)): story.append( answers.Choice(self.obj.answers[i], self.obj.calculate.values[i], self.obj.calculate.significant[i])) story = [platypus.KeepTogether(story)] return story, False
def story(self): story, tmp = Question.story(self) if self.obj.calculate.count: for box in self.obj.boxes: story.append( answers.Choice(box.text, self.obj.calculate.values[box.value], self.obj.calculate.significant[box.value])) story = [platypus.KeepTogether(story)] if len(self.text) > 0: story.append(platypus.Spacer(0, 3 * mm)) story.extend(self.text) return story, False
def story(self): story, tmp = Question.story(self) if self.obj.calculate.range_count: story.append( answers.Range(self.obj.calculate.range_min, self.obj.calculate.range_max, self.obj.calculate.range_values, self.obj.answers, self.obj.calculate.mean, self.obj.calculate.standard_deviation, self.obj.calculate.count, self.obj.calculate.significant)) if self.obj.calculate.count > 0 and self.obj.calculate.values: for box in self.obj.boxes: if box.value in self.obj.calculate.values: story.append( answers.Choice(box.text, self.obj.calculate.values[box.value], False)) story = [platypus.KeepTogether(story)] return story, False