Changeset 3039 for WAeUP_SRP/base


Ignore:
Timestamp:
23 Jan 2008, 19:09:11 (17 years ago)
Author:
Henrik Bettermann
Message:

minor changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/WAeUPTool.py

    r3036 r3039  
    17521752    security.declareProtected(ModifyPortalContent,'mass_create_student') ###(
    17531753    def mass_create_student(self,mapping):
    1754         "create a students record due import"
     1754        "create student records due import"
    17551755        logger = logging.getLogger('WAeUPTool.mass_create_student')
    17561756        students_folder = self.portal_url.getPortalObject().campus.students
     
    18081808    def mass_edit_student(self,mapping):
    18091809        wftool = self.portal_workflow
    1810         "edit a students record due import"
     1810        "edit student records due import"
    18111811        logger = logging.getLogger('WAeUPTool.mass_edit_student')
    18121812        students_folder = self.portal_url.getPortalObject().campus.students
     
    19241924    def mass_edit_verdict(self,mapping):
    19251925        wftool = self.portal_workflow
    1926         "edit a students verdict"
     1926        "edit student verdicts"
    19271927        logger = logging.getLogger('WAeUPTool.mass_edit_verdict')
    19281928        students_folder = self.portal_url.getPortalObject().campus.students
     
    19581958        current_session = mapping.get('current_session','')
    19591959        if current_session and student_record.session != current_session:
    1960             return '','student_id: %s imported session %s does not match session %s' % (student_id,
     1960            return '','student_id: %s imported session %s does not match current_session %s' % (student_id,
    19611961                                                                                        current_session,
    19621962                                                                                        student_record.session)
    1963                                                                                        
     1963
    19641964        current_level = mapping.get('current_level','')
    19651965        if current_level and student_record.level != current_level:
    1966             return '','student_id %s: imported level %s does not match level %s' % (student_id,
     1966            return '','student_id %s: imported level %s does not match current_level %s' % (student_id,
    19671967                                                                                    current_level,
    19681968                                                                                    student_record.level)
    19691969        study_course_obj = getattr(student_obj,'study_course',None)
    19701970        if study_course_obj is None:
    1971             return '','student_id %s: no study_course-object' % student_id
     1971            return '','student_id %s: no study_course object' % student_id
    19721972        level_obj = getattr(study_course_obj,current_level,None)
    19731973        if  level_obj is None:
    1974             return '','student_id %s: no study_level-object for level %s' % (student_id,
     1974            return '','student_id %s: no study_level object for level %s' % (student_id,
    19751975                                                                             current_level)
    19761976        verdict = d['verdict'] = d['current_verdict']  = mapping.get('current_verdict','')
     
    19781978            return '','student_id %s: verdict already set to %s' % (student_id,
    19791979                                                                    verdict)
    1980            
     1980
    19811981        level_review_state = wftool.getInfoFor(level_obj,'review_state',None)
    19821982        if level_review_state != "closed":
    19831983            return '','student_id %s: level %s is not closed' % (student_id,
    19841984                                                                 current_level)
    1985        
     1985
    19861986        study_course_obj.getContent().edit(mapping = d)
    19871987        level_obj.getContent().edit(mapping = d)
Note: See TracChangeset for help on using the changeset viewer.