Esempio n. 1
0
    def __init__(self, context, request):

        BaseView.__init__(self, context, request)

        form = context.__data__['form']['data']

        pyramidformview.__init__(self, context, request, form)
Esempio n. 2
0
 def __init__(self, attempt, handler):
     BaseView.__init__(self, handler);
     self.attempt = attempt
     
     template.register_template_library('filters.resolve')
     
     self.values['attempt'] = attempt
     self.values['quiz'] = attempt.quiz
     self.values['quiz_snapshot'] = attempt.snapshot.quiz_entity
     self.values['questions'] = attempt.snapshot.questions
     self.values['responses'] = attempt.responses
    def __init__(self, context, request):

        BaseView.__init__(self, context, request)