Changeset 472
- Timestamp:
- 2 Sep 2006, 14:51:14 (18 years ago)
- Location:
- WAeUP_SRP/trunk
- Files:
-
- 11 added
- 12 deleted
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/Students.py
r469 r472 102 102 logger.info('%(tr_count)s: Creating Student with ID %(sid)s Matric_no %(matric_no)s ' % vars()) 103 103 s = getattr(self,sid) 104 s.invokeFactory('StudentA dmission','admission')105 da = {'Title': 'A dmission Data'}104 s.invokeFactory('StudentApplication','application') 105 da = {'Title': 'Application Data'} 106 106 s.invokeFactory('StudentPersonal','personal') 107 107 da['jamb_reg_no'] = student.get('EntryRegNo') … … 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') … … 125 125 d['campus_address'] = student.get('CampusAddress') 126 126 d['phone'] = student.get('PhoneNumber') 127 s.a dmission.getContent().edit(mapping=da)127 s.application.getContent().edit(mapping=da) 128 128 sp.getContent().edit(mapping=d) 129 129 sc.getContent().edit(mapping=dc) … … 295 295 logger.info('processing %(REG-NO)s,%(NAME)s,%(SEX)s,%(STATE)s,%(LGA)s,%(ENG-SCORE)s,%(SUBJ1)s,%(SUBJ1-SCORE)s,%(SUBJ2)s,%(SUBJ2-SCORE)s,%(SUBJ3)s,%(SUBJ3-SCORE)s,%(AGGREGATE)s,%(UNIV1)s,%(FACULTY1)s,%(COURSE1)s,%(UNIV2)s,%(FACULTY2)s,%(COURSE2)s\n' % jamb) 296 296 jamb_reg_no = jamb.get('REG-NO') 297 res = self.portal_catalog({'meta_type': "StudentA dmission",297 res = self.portal_catalog({'meta_type': "StudentApplication", 298 298 'jamb_reg_no': jamb_reg_no }) 299 299 if res: … … 314 314 logger.info('%(tr_count)s: Creating Student with ID %(sid)s REG-NO %(jamb_reg_no)s ' % vars()) 315 315 s = getattr(self,sid) 316 s.invokeFactory('StudentA dmission','admission')317 da = {'Title': 'A dmission Data'}316 s.invokeFactory('StudentApplication','application') 317 da = {'Title': 'Application Data'} 318 318 ## s.invokeFactory('StudentPersonal','personal') 319 319 ## sp = s.personal … … 334 334 da["jamb_second_uni"] = jamb.get("UNIV2") 335 335 ## s.personal.getContent().edit(mapping=d) 336 s.a dmission.getContent().edit(mapping=da)336 s.application.getContent().edit(mapping=da) 337 337 return self.REQUEST.RESPONSE.redirect("%s" % self.REQUEST.get('URL1')) 338 338 ###) 339 340 339 340 341 341 342 342 security.declareProtected(View,"Title") … … 369 369 content = data.getContent() 370 370 return "%s %s" % (content.firstname,content.lastname) 371 data = getattr(self,'a dmission',None)371 data = getattr(self,'application',None) 372 372 if data: 373 373 content = data.getContent() … … 446 446 """compose title""" 447 447 return "Level %s" % self.aq_parent.getId() 448 448 449 449 450 450 InitializeClass(StudyLevel) … … 489 489 return sum/course_count 490 490 return 0.0 491 491 492 492 InitializeClass(StudentStudyLevel) 493 493 … … 523 523 ###) 524 524 525 class StudentA dmission(CPSDocument): ###(526 """ 527 WAeUP Student container for the various student data 528 """ 529 meta_type = 'StudentA dmission'530 portal_type = meta_type 531 security = ClassSecurityInfo() 532 533 security.declareProtected(View,"Title") 534 def Title(self): 535 """compose title""" 536 return "A dmission Data"537 538 539 InitializeClass(StudentA dmission)540 541 def addStudentA dmission(container, id, REQUEST=None, **kw):525 class StudentApplication(CPSDocument): ###( 526 """ 527 WAeUP Student container for the various student data 528 """ 529 meta_type = 'StudentApplication' 530 portal_type = meta_type 531 security = ClassSecurityInfo() 532 533 security.declareProtected(View,"Title") 534 def Title(self): 535 """compose title""" 536 return "Application Data" 537 538 539 InitializeClass(StudentApplication) 540 541 def addStudentApplication(container, id, REQUEST=None, **kw): 542 542 """Add a Students eligibility data.""" 543 ob = StudentA dmission(id, **kw)543 ob = StudentApplication(id, **kw) 544 544 return CPSBase_adder(container, ob, REQUEST=REQUEST) 545 545 … … 587 587 portal_type = meta_type 588 588 security = ClassSecurityInfo() 589 589 590 590 def getCourseEntry(self,cid): 591 591 res = self.portal_catalog({'meta_type': "StudentCourse", -
WAeUP_SRP/trunk/Widgets.py
r463 r472 232 232 err = 'Invalid Registration Number in the format: %s%s with N = Number, L = Letter' % (self.digits_str,self.letters_str) 233 233 else: 234 search = self.portal_catalog({'meta_type': 'StudentA dmission',234 search = self.portal_catalog({'meta_type': 'StudentApplication', 235 235 'jamb_reg_no': value, 236 236 }) 237 if len(search) < 1: 237 if len(search) < 1: 238 238 err = 'No JAMB data for %s' % (value) 239 239 if err: -
WAeUP_SRP/trunk/__init__.py
r467 r472 41 41 "StudentStudyCourse", 42 42 "StudentCourseResult", 43 "StudentA dmission",43 "StudentApplication", 44 44 "StudentClearance", 45 45 "StudentPersonal", -
WAeUP_SRP/trunk/profiles/default/layouts.xml
r463 r472 13 13 <object name="student_check_pin" meta_type="CPS Layout"/> 14 14 <object name="student_study_course" meta_type="CPS Layout"/> 15 <object name="student_a dmission" meta_type="CPS Layout"/>16 <object name="student_a dmission_fe" meta_type="CPS Layout"/>15 <object name="student_application" meta_type="CPS Layout"/> 16 <object name="student_application_fe" meta_type="CPS Layout"/> 17 17 <object name="student_clearance" meta_type="CPS Layout"/> 18 18 <object name="student_clearance_fe" meta_type="CPS Layout"/> -
WAeUP_SRP/trunk/profiles/default/schemas.xml
r454 r472 16 16 <object name="scratch_card_batch.xml" meta_type="CPS Schema"/> 17 17 <object name="student_accommodation" meta_type="CPS Schema"/> 18 <object name="student_a dmission" meta_type="CPS Schema"/>18 <object name="student_application" meta_type="CPS Schema"/> 19 19 <object name="student_clearance" meta_type="CPS Schema"/> 20 20 <object name="student_personal" meta_type="CPS Schema"/> -
WAeUP_SRP/trunk/profiles/default/types.xml
r464 r472 21 21 <object name="StudentCourseResult" meta_type="CPS Flexible Type Information"/> 22 22 <object name="StudentPersonal" meta_type="CPS Flexible Type Information"/> 23 <object name="StudentA dmission" meta_type="CPS Flexible Type Information"/>23 <object name="StudentApplication" meta_type="CPS Flexible Type Information"/> 24 24 <object name="StudentSemester" meta_type="CPS Flexible Type Information"/> 25 25 <object name="StudentsFolder" meta_type="CPS Flexible Type Information"/> -
WAeUP_SRP/trunk/profiles/default/types/StudentsFolder.xml
r470 r472 39 39 condition_expr="" url_expr="string:${object/absolute_url}/create_jamb" 40 40 visible="False"/> 41 <action title="Check A dmission Status" action_id="check_admission"41 <action title="Check Application Status" action_id="check_application" 42 42 category="object" 43 43 condition_expr="object/portal_membership/isAnonymousUser" 44 url_expr="string:${object/absolute_url}/check_a dmission" visible="False">44 url_expr="string:${object/absolute_url}/check_application" visible="False"> 45 45 <permission value="View"/> 46 46 </action> -
WAeUP_SRP/trunk/profiles/default/workflows.xml
r464 r472 71 71 <bound-workflow workflow_id="waeup_student_wf"/> 72 72 </type> 73 <type type_id="StudentA dmission">73 <type type_id="StudentApplication"> 74 74 <bound-workflow workflow_id="waeup_student_wf"/> 75 75 </type> -
WAeUP_SRP/trunk/profiles/default/workflows/waeup_student_wf/definition.xml
r455 r472 6 6 <permission>Modify portal content</permission> 7 7 <permission>View</permission> 8 <state state_id="a dmission_pin_entered" title="">9 <exit-transition transition_id=" request_admission"/>8 <state state_id="application_pin_entered" title=""> 9 <exit-transition transition_id="apply"/> 10 10 </state> 11 11 <state state_id="admission_rejected" title=""> 12 12 <exit-transition transition_id="finally_reject"/> 13 13 </state> 14 <state state_id="a dmission_requested" title="">14 <state state_id="applied" title=""> 15 15 <exit-transition transition_id="pume_fail"/> 16 16 <exit-transition transition_id="pume_pass"/> … … 33 33 <state state_id="created" title=""> 34 34 <exit-transition transition_id="create_content"/> 35 <exit-transition transition_id="enter_a dmission_pin"/>35 <exit-transition transition_id="enter_application_pin"/> 36 36 <exit-transition transition_id="open"/> 37 37 <permission-map name="Modify portal content" … … 61 61 <exit-transition transition_id="reject_admission"/> 62 62 </state> 63 <state state_id="rejected" title=""> 64 </state> 65 <state state_id="sleeping_mode" title=""> 66 <exit-transition transition_id="enter_admission_pin"/> 67 </state> 63 68 64 <transition transition_id="admit" title="" 69 65 new_state="admitted" trigger="USER" 70 66 before_script="" after_script="open_clearance"> 71 67 72 68 <guard> 73 69 <guard-role>Manager</guard-role> … … 80 76 trigger="USER" before_script="" 81 77 after_script="open_personal"> 82 78 83 79 <guard> 84 80 <guard-role>Manager</guard-role> … … 90 86 new_state="closed" trigger="USER" 91 87 before_script="" after_script=""> 92 88 93 89 <guard> 94 90 <guard-role>Manager</guard-role> … … 99 95 new_state="created" trigger="USER" 100 96 before_script="" after_script=""> 101 97 102 98 <guard> 103 99 </guard> … … 108 104 new_state="" trigger="USER" before_script="" 109 105 after_script=""> 110 106 111 107 <guard> 112 108 </guard> … … 114 110 <transition-behavior behavior_id="allow-sub-delete"/> 115 111 </transition> 116 <transition transition_id="enter_a dmission_pin" title=""117 new_state="a dmission_pin_entered"112 <transition transition_id="enter_application_pin" title="" 113 new_state="application_pin_entered" 118 114 trigger="USER" 119 before_script="validate_a dmission_pin"120 after_script="open_a dmission">121 115 before_script="validate_application_pin" 116 after_script="open_application"> 117 122 118 <guard> 123 119 <guard-role>Manager</guard-role> … … 131 127 before_script="validate_clearance_pin" 132 128 after_script="open_clearance"> 133 129 134 130 <guard> 135 131 <guard-role>Manager</guard-role> … … 141 137 new_state="finally_rejected" trigger="USER" 142 138 before_script="" after_script=""> 143 139 144 140 <guard> 145 141 <guard-role>Manager</guard-role> … … 151 147 new_state="opened" trigger="USER" 152 148 before_script="" after_script=""> 153 149 154 150 <guard> 155 151 <guard-role>Manager</guard-role> … … 160 156 new_state="pume_failed" trigger="USER" 161 157 before_script="" after_script=""> 162 158 163 159 <guard> 164 160 <guard-role>Manager</guard-role> … … 170 166 new_state="pume_passed" trigger="USER" 171 167 before_script="" after_script=""> 172 168 173 169 <guard> 174 170 <guard-role>Manager</guard-role> … … 180 176 new_state="rejected" trigger="USER" 181 177 before_script="" after_script=""> 182 178 183 179 <guard> 184 180 </guard> … … 187 183 new_state="admission_rejected" trigger="USER" 188 184 before_script="" after_script=""> 189 185 190 186 <guard> 191 187 <guard-role>Manager</guard-role> … … 198 194 trigger="USER" before_script="open_clearance" 199 195 after_script=""> 200 196 201 197 <guard> 202 198 <guard-role>Manager</guard-role> … … 205 201 </guard> 206 202 </transition> 207 <transition transition_id=" request_admission" title=""208 new_state="a dmission_requested" trigger="USER"209 before_script="" after_script="close_a dmission">210 203 <transition transition_id="apply" title="" 204 new_state="applied" trigger="USER" 205 before_script="" after_script="close_application"> 206 211 207 <guard> 212 208 <guard-role>Manager</guard-role> … … 218 214 new_state="clearence_requested" trigger="USER" 219 215 before_script="" after_script="close_clearance"> 220 221 <guard> 222 <guard-role>Manager</guard-role> 223 <guard-role>SectionManager</guard-role> 224 <guard-role>Owner</guard-role> 225 </guard> 226 </transition> 227 <script script_id="close_a dmission" type="Script (Python)"228 filename="workflows/waeup_student_wf/scripts/close_a dmission.py"/>216 217 <guard> 218 <guard-role>Manager</guard-role> 219 <guard-role>SectionManager</guard-role> 220 <guard-role>Owner</guard-role> 221 </guard> 222 </transition> 223 <script script_id="close_application" type="Script (Python)" 224 filename="workflows/waeup_student_wf/scripts/close_application.py"/> 229 225 <script script_id="close_clearance" type="Script (Python)" 230 226 filename="workflows/waeup_student_wf/scripts/close_clearance.py"/> 231 227 <script script_id="close_personal" type="Script (Python)" 232 228 filename="workflows/waeup_student_wf/scripts/close_personal.py"/> 233 <script script_id="open_a dmission" type="Script (Python)"234 filename="workflows/waeup_student_wf/scripts/open_a dmission.py"/>229 <script script_id="open_application" type="Script (Python)" 230 filename="workflows/waeup_student_wf/scripts/open_application.py"/> 235 231 <script script_id="open_clearance" type="Script (Python)" 236 232 filename="workflows/waeup_student_wf/scripts/open_clearance.py"/> 237 233 <script script_id="open_personal" type="Script (Python)" 238 234 filename="workflows/waeup_student_wf/scripts/open_personal.py"/> 239 <script script_id="validate_a dmission_pin"235 <script script_id="validate_application_pin" 240 236 type="Script (Python)" 241 filename="workflows/waeup_student_wf/scripts/validate_a dmission_pin.py"/>237 filename="workflows/waeup_student_wf/scripts/validate_application_pin.py"/> 242 238 <script script_id="validate_clearance_pin" 243 239 type="Script (Python)" -
WAeUP_SRP/trunk/skins/waeup_academics/academics_contents_display_buttons.py
r454 r472 10 10 # $Id: folder_delete.py 30246 2005-12-02 20:10:18Z fguillaume $ 11 11 """ 12 buttons shouldn't be displayed if 12 buttons shouldn't be displayed if 13 13 """ 14 14 … … 17 17 'StudyLevel', 18 18 'Student', 19 'StudentA dmission',19 'StudentApplication', 20 20 'StudentClearance', 21 21 'StudentPersonal', -
WAeUP_SRP/trunk/skins/waeup_default/display_content.py
r454 r472 10 10 # $Id: folder_delete.py 30246 2005-12-02 20:10:18Z fguillaume $ 11 11 """ 12 content should be displayed if 12 content should be displayed if 13 13 """ 14 14 return context.portal_type in ('Certificate', 15 15 'Department', 16 'StudentA dmission',16 'StudentApplication', 17 17 'StudentClearance', 18 18 'StudentPersonal', -
WAeUP_SRP/trunk/skins/waeup_default/process_waeup_login.py
r350 r472 17 17 ##member_id = str(member) 18 18 ##ma = getattr(context,member_id) 19 ##jkw = {'a dmission_sc_pin': sc_pin}19 ##jkw = {'application_sc_pin': sc_pin} 20 20 ##jamb = getattr(ma,'JAMB') 21 21 ##jamb.getContent().edit(mapping=jkw) -
WAeUP_SRP/trunk/skins/waeup_student/acknowledge_slip.pt
r460 r472 18 18 <tal:block tal:condition="python:context.portal_type == 'Student'" tal:omit-tag=""> 19 19 <tal:block tal:define=" 20 a dm python:here.admission;21 a dm_proxy python:adm.getContent();20 appl python:here.application; 21 appl_proxy python:appl.getContent(); 22 22 clear python:here.clearance; 23 23 clear_proxy python:clear.getContent(); … … 29 29 30 30 31 <tal:block tal:content="structure python:a dm_proxy.render(cluster='adm_slip')" />32 <tal:block tal:content="structure python:clear_proxy.render(cluster='a dm_slip')" />33 <tal:block tal:content="structure python:pers_proxy.render(cluster='a dm_slip')" />31 <tal:block tal:content="structure python:appl_proxy.render(cluster='appl_slip')" /> 32 <tal:block tal:content="structure python:clear_proxy.render(cluster='appl_slip')" /> 33 <tal:block tal:content="structure python:pers_proxy.render(cluster='appl_slip')" /> 34 34 35 35
Note: See TracChangeset for help on using the changeset viewer.