Changeset 3207
- Timestamp:
- 23 Feb 2008, 23:04:51 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/WAeUPImport.py
r3195 r3207 51 51 from utils import makeDigest 52 52 53 class WAeUPImport: ###( 53 class WAeUPImport: ###( 54 54 """ WAeUPImport """ 55 55 required_modes = ('create',) … … 233 233 courses_folder = getattr(department.getObject(),"courses",None) 234 234 if courses_folder is not None: 235 self._v_department_courses[department.getId] = courses_folder.objectIds() 235 self._v_department_courses[department.getId] = courses_folder.objectIds() 236 236 department_id = mapping['department_code'] 237 237 course_id = mapping.get('code','') … … 446 446 plural_name = "%ss" % name 447 447 commit_after = 1000 448 448 449 449 def create(self,mapping):###( 450 450 "create a department in the correct faculty" … … 550 550 plural_name = "%ss" % name 551 551 commit_after = 100 552 552 553 553 field2types_student = { ###( 554 554 'StudentApplication': … … 662 662 msg = "matric_no exists" 663 663 break 664 if not (matric_no and jamb_reg_no):664 else: 665 665 msg = "jamb_reg_no or matric_no must be specified" 666 666 break … … 681 681 for field in f2t[pt]['fields']: 682 682 d[field] = mapping.get(field,'') 683 683 684 684 if pt == "StudentApplication": 685 685 #d['jamb_sex'] = 'M' … … 689 689 d['jamb_middlename'] = mapping.get('middlename',None) 690 690 d['jamb_lastname'] = mapping.get('lastname',None) 691 691 692 692 # if pt == "StudyCourse": 693 693 # for von,zu in (('entry_mode','current_mode'), … … 696 696 # d[zu] = mapping[von] 697 697 sub_doc.edit(mapping = d) 698 698 699 699 #import pdb;pdb.set_trace() 700 700 new_state = f2t[pt]['wf_transition_%(transition)s' % vars()] … … 833 833 commit_after = 100000 834 834 required_modes = ('create','edit') 835 835 836 836 def edit(self,mapping): 837 837 "edit student verdicts" … … 907 907 break 908 908 verdict = d['verdict'] = d['current_verdict'] = mapping.get('current_verdict','') 909 909 910 910 #if verdict == student_record.verdict: 911 911 # msg = 'student %s: verdict already set to %s' % (student_id, 912 912 # verdict) 913 913 914 914 level_review_state = wftool.getInfoFor(level_obj,'review_state',None) 915 915 if level_review_state != "closed": … … 917 917 # msg = 'student %s: level %s is not closed' % (student_id, 918 918 # current_level) 919 919 920 920 study_course_obj.getContent().edit(mapping = d) 921 921 level_obj.getContent().edit(mapping = d)
Note: See TracChangeset for help on using the changeset viewer.