- Timestamp:
- 30 Aug 2006, 19:01:57 (18 years ago)
- Location:
- WAeUP_SRP/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/Students.py
r452 r453 112 112 dc = {'Title': 'Clearance Data'} 113 113 dc['matric_no'] = matric_no 114 lga = student.get('State') + ' / ' + student.get('LGA') 114 lga = student.get('State') + ' / ' + student.get('LGA') 115 115 dc['lga'] = lga 116 116 dc['nationality'] = student.get('Nationality') 117 117 dc['email'] = student.get('Emailaddress') 118 css = student.get('CurrentSession') or '2004-2005' 119 cs = int(css.split('-')[0]) - 2000 120 cl = int(student.get('StudentLevel'))/100 121 dc['entry_session'] = "200%s" % (cs - cl) 118 122 d['firstname'] = student.get('FirstName') 119 123 d['middlename'] = student.get('MiddleName') … … 138 142 #d['faculty'] = student.get('Faculty') 139 143 #d['department'] = student.get('Dept') 140 d['course_major'] = certcode 141 css = student.get('CurrentSession') or '2004-2005' 142 cs = int(css.split('-')[0]) - 2000 143 cl = int(student.get('StudentLevel'))/100 144 d['entry_session'] = "200%s" % (cs - cl) 144 d['study_course'] = certcode 145 145 sc.getContent().edit(mapping=d) 146 146 # … … 379 379 """compose title""" 380 380 content = self.getContent() 381 return " Course Major"381 return "Study Course" 382 382 383 383 … … 426 426 """compose title""" 427 427 return "Level %s" % self.aq_parent.getId() 428 428 429 429 430 430 InitializeClass(StudyLevel) -
WAeUP_SRP/trunk/profiles/default/layouts/student_study_course.xml
r370 r453 4 4 <property name="layout_edit_method"></property> 5 5 <property name="layout_view_method"></property> 6 <property name="style_prefix">layout_ default_</property>6 <property name="style_prefix">layout_waeup_</property> 7 7 <property name="flexible_widgets"/> 8 8 <property name="validate_values_expr"></property> 9 <widget name=" course_major" meta_type="String Widget">10 <property name="title">C ourse Major</property>9 <widget name="study_course" meta_type="String Widget"> 10 <property name="title">Certificate Code</property> 11 11 <property name="fields"> 12 <element value=" course_major"/>12 <element value="study_course"/> 13 13 </property> 14 14 <property name="is_required">True</property> 15 <property name="label">Course Major</property> 16 <property name="label_edit">Course Major</property> 17 <property name="readonly_layout_modes"/> 18 <property name="hidden_layout_modes"/> 19 <property name="hidden_readonly_layout_modes"/> 20 </widget> 21 <widget name="department" meta_type="Select Widget"> 22 <property name="title">Department</property> 23 <property name="fields"> 24 <element value="department"/> 25 </property> 26 <property name="label">Department</property> 27 <property name="label_edit">Department</property> 28 <property name="readonly_layout_modes"/> 29 <property name="hidden_layout_modes"/> 30 <property name="hidden_readonly_layout_modes"/> 31 <property name="vocabulary">get_departments_voc</property> 32 </widget> 33 <widget name="entry_reg_no" meta_type="String Widget"> 34 <property name="title">Entry Registration No</property> 35 <property name="fields"> 36 <element value="entry_reg_no"/> 37 </property> 38 <property name="label">Entry Registration No</property> 39 <property name="label_edit">Entry Registration No</property> 40 <property name="readonly_layout_modes"/> 41 <property name="hidden_layout_modes"/> 42 <property name="hidden_readonly_layout_modes"/> 43 </widget> 44 <widget name="entry_session" meta_type="String Widget"> 45 <property name="title">Entry Session</property> 46 <property name="fields"> 47 <element value="entry_session"/> 48 </property> 49 <property name="label">Entry Session</property> 50 <property name="label_edit">Entry Session</property> 51 <property name="readonly_layout_modes"/> 52 <property name="hidden_layout_modes"/> 53 <property name="hidden_readonly_layout_modes"/> 54 </widget> 55 <widget name="faculty" meta_type="Select Widget"> 56 <property name="title">Faculty</property> 57 <property name="fields"> 58 <element value="faculty"/> 59 </property> 60 <property name="label">Faculty</property> 61 <property name="label_edit">Faculty</property> 62 <property name="readonly_layout_modes"/> 63 <property name="hidden_layout_modes"/> 64 <property name="hidden_readonly_layout_modes"/> 65 <property name="vocabulary">get_faculties_voc</property> 66 </widget> 67 <widget name="matricel_no" meta_type="String Widget"> 68 <property name="title">Matricel No</property> 69 <property name="fields"> 70 <element value="matricel_no"/> 71 </property> 72 <property name="label">Matricel No</property> 73 <property name="label_edit">Matricel No</property> 15 <property name="label">Certificate Code</property> 16 <property name="label_edit">Certificate Code</property> 74 17 <property name="readonly_layout_modes"/> 75 18 <property name="hidden_layout_modes"/> … … 78 21 <table> 79 22 <row> 80 <cell name="entry_reg_no"/> 81 </row> 82 <row> 83 <cell name="matricel_no"/> 84 </row> 85 <row> 86 <cell name="faculty"/> 87 </row> 88 <row> 89 <cell name="department"/> 90 </row> 91 <row> 92 <cell name="course_major"/> 93 </row> 94 <row> 95 <cell name="entry_session"/> 23 <cell name="study_course"/> 96 24 </row> 97 25 </table> -
WAeUP_SRP/trunk/profiles/default/schemas/student_study_course.xml
r421 r453 1 1 <?xml version="1.0"?> 2 2 <object name="student_study_course" meta_type="CPS Schema"> 3 <field name="course_major" meta_type="CPS String Field"/> 4 <field name="department" meta_type="CPS String Field"/> 5 <field name="faculty" meta_type="CPS String Field"/> 3 <field name="study_course" meta_type="CPS String Field"/> 6 4 </object> -
WAeUP_SRP/trunk/profiles/default/workflows.xml
r440 r453 57 57 <bound-workflow workflow_id="section_folder_wf"/> 58 58 </type> 59 <type type_id="Jamb"> 60 <bound-workflow workflow_id="waeup_base_wf"/> 61 </type> 62 <type type_id="Members Workspace"> 63 <bound-workflow workflow_id="workspace_folder_wf"/> 64 </type> 65 <type type_id="ScratchCardBatch"> 66 <bound-workflow workflow_id="section_folder_wf"/> 67 </type> 68 <type type_id="ScratchCardBatchesFolder"> 69 <bound-workflow workflow_id="section_folder_wf"/> 70 </type> 71 <type type_id="Section"> 72 <bound-workflow workflow_id="section_folder_wf"/> 73 </type> 59 74 <type type_id="Semester"> 60 75 <bound-workflow workflow_id="section_folder_wf"/> 61 76 </type> 62 77 <type type_id="Student"> 63 <bound-workflow workflow_id="section_folder_wf"/> 78 <bound-workflow workflow_id="waeup_student_wf"/> 79 </type> 80 <type type_id="StudentAdmission"> 81 <bound-workflow workflow_id="waeup_student_wf"/> 82 </type> 83 <type type_id="StudentClearance"> 84 <bound-workflow workflow_id="waeup_student_wf"/> 64 85 </type> 65 86 <type type_id="StudentDocuments"> 66 87 <bound-workflow workflow_id="waeup_base_wf"/> 67 88 </type> 68 <type type_id="Student Clearance">89 <type type_id="StudentElegibility"> 69 90 <bound-workflow workflow_id="waeup_base_wf"/> 70 91 </type> 71 <type type_id="Student Admission">72 <bound-workflow workflow_id=" section_folder_wf"/>92 <type type_id="StudentEligibility"> 93 <bound-workflow workflow_id="waeup_base_wf"/> 73 94 </type> 74 95 <type type_id="StudentPersonal"> 75 <bound-workflow workflow_id="waeup_ base_wf"/>96 <bound-workflow workflow_id="waeup_student_wf"/> 76 97 </type> 77 98 <type type_id="StudentStudyCourse"> 78 <bound-workflow workflow_id="waeup_ base_wf"/>99 <bound-workflow workflow_id="waeup_student_wf"/> 79 100 </type> 80 101 <type type_id="StudentsFolder"> 81 <bound-workflow workflow_id=" section_folder_wf"/>102 <bound-workflow workflow_id="waeup_student_wf"/> 82 103 </type> 83 104 <type type_id="StudyLevel"> … … 87 108 <bound-workflow workflow_id="section_folder_wf"/> 88 109 </type> 89 <type type_id="ScratchCardBatchesFolder"> 90 <bound-workflow workflow_id="section_folder_wf"/> 91 </type> 92 <type type_id="ScratchCardBatch"> 93 <bound-workflow workflow_id="section_folder_wf"/> 110 <type type_id="Workspace"> 111 <bound-workflow workflow_id="workspace_folder_wf"/> 94 112 </type> 95 113 </bindings>
Note: See TracChangeset for help on using the changeset viewer.