Changeset 1383

Show
Ignore:
Timestamp:
01/21/11 17:20:29 (16 months ago)
Author:
zeank
Message:

fixed formatting
outdated comment removed
refs #251

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • HelpIM3/branches/chatgroups/HelpIM/questionair/pages/QuestionEditor.py

    r1382 r1383  
    276276                self.addError('question_type', 'question_type %s unknown' % self.getParam('question_type')) 
    277277 
    278         """ [zeank] what's that good for? """ 
    279278        if self.checkParam('__function__', 'AddAnswerDefinition'): 
    280279            self.checkNotEmpty('fcAnswer_code', 'De code is verplicht') 
     
    440439    def getPanelDataArray(self, *pargs, **kwargs): 
    441440        self.log.debug('.getPanelDataArray()') 
    442         questionDataElements = {'Question': [ 'questionair_id', 'question_id', 'question_text', 'question_error', 'question_type', 'question_answerIsMandatory', 'question_MultipleAnswersAllowed', 'answer_type', 'answerDefinitions', 'question_answerPresentationType'], 
    443                                 'TextAnswerDefinition':['txtAnswerDef_type', 'txtAnswer_length', 'txtAnswer_decimals'], 
    444                                 'FixedChoiceAnswerDefinition': [ 'answerDef_id', 'answerDef_question_id', 'answerDef_Type', 'fcAnswer_code', 'fcAnswer_text', 'fcAnswer_action'], 
    445                                } 
     441        questionDataElements = {'Question': ['questionair_id', 
     442                                             'question_id', 
     443                                             'question_text', 
     444                                             'question_error', 
     445                                             'question_type', 
     446                                             'question_answerIsMandatory', 
     447                                             'question_MultipleAnswersAllowed', 
     448                                             'answer_type', 
     449                                             'answerDefinitions', 
     450                                             'question_answerPresentationType'], 
     451                                'TextAnswerDefinition':['txtAnswerDef_type', 
     452                                                        'txtAnswer_length', 
     453                                                        'txtAnswer_decimals'], 
     454                                'FixedChoiceAnswerDefinition': ['answerDef_id', 
     455                                                                'answerDef_question_id', 
     456                                                                'answerDef_Type', 
     457                                                                'fcAnswer_code', 
     458                                                                'fcAnswer_text', 
     459                                                                'fcAnswer_action'], 
     460                                } 
    446461        if self.him_request.REQUEST_METHOD == 'POST': 
    447462            self.panelDataToObject(*pargs, **kwargs)