Changeset 1286
- Timestamp:
- 12 Jan 2007, 22:27:43 (18 years ago)
- Location:
- WAeUP_SRP/trunk
- Files:
-
- 4 added
- 1 deleted
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/WAeUPTool.py
r1285 r1286 90 90 clear_doc = clear.getContent() 91 91 matric_no = clear_doc.matric_no.upper() 92 picture ="%s/import/pictures_returning/%s.jpg" % (i_home,matric_no) 92 picture1 ="%s/import/pictures_returning/%s.jpg" % (i_home,matric_no) 93 picture2 ="%s/import/pictures_returning/%s.JPG" % (i_home,matric_no) 93 94 #import pdb;pdb.set_trace() 94 if not os.path.exists(picture): 95 return "Passport foto not found %s" % picture 96 file = open(picture) 95 if os.path.exists(picture1): 96 file = open(picture1) 97 elif os.path.exists(picture2): 98 file = open(picture2) 99 else: 100 return "passport picture not found %s" % picture 101 97 102 outfile = file.read() 98 103 app_doc.manage_addFile('passport', 99 104 file=outfile, 100 105 title="%s.jpg" % matric_no) 101 return "successfully loaded passport "106 return "successfully loaded passport picture" 102 107 ###) 103 108 -
WAeUP_SRP/trunk/profiles/default/layouts/student_schoolfee.xml
r1283 r1286 7 7 <property name="flexible_widgets"/> 8 8 <property name="validate_values_expr"></property> 9 <property name="label"></property>10 <property name="label_edit"></property>11 <property name="is_i18n">False</property>12 9 <widget name="pin" meta_type="Scratchcard Pin Widget"> 13 <property name="title">Schoolfee Scratch card</property>10 <property name="title">Schoolfee Scratch Card</property> 14 11 <property name="fields"> 15 12 <element value="payment_id"/> 16 13 </property> 17 <property name="label"> Scratchcard</property>18 <property name="label_edit"> Scratchcard</property>14 <property name="label">Access Code</property> 15 <property name="label_edit">Access Code</property> 19 16 <property name="readonly_layout_modes"/> 20 17 <property name="hidden_layout_modes"/> -
WAeUP_SRP/trunk/profiles/default/students_catalog.xml
r1272 r1286 1 <?xml version="1.0"?>1 z<?xml version="1.0"?> 2 2 <object name="portal_catalog" meta_type="WAeUP Table"> 3 3 <column value="id"/> -
WAeUP_SRP/trunk/profiles/default/workflows/waeup_student_wf/definition.xml
r1259 r1286 94 94 <exit-transition transition_id="create_content"/> 95 95 <exit-transition transition_id="defer"/> 96 <exit-transition transition_id="pay_school_fee"/> 96 97 <exit-transition transition_id="reject_clearance"/> 97 98 <permission-map name="Delete objects" acquired="False"> … … 188 189 <state state_id="returning" title=""> 189 190 <exit-transition transition_id="create_content"/> 190 <exit-transition transition_id=" enter_school_fee_pin"/>191 <permission-map name="View" acquired="True"> 192 <permission-role>Owner</permission-role> 193 <permission-role>SectionOfficer</permission-role> 194 </permission-map> 195 </state> 196 <state state_id="school_fee_p in_entered" title="">191 <exit-transition transition_id="pay_school_fee"/> 192 <permission-map name="View" acquired="True"> 193 <permission-role>Owner</permission-role> 194 <permission-role>SectionOfficer</permission-role> 195 </permission-map> 196 </state> 197 <state state_id="school_fee_paid" title=""> 197 198 <exit-transition transition_id="create_content"/> 198 199 <exit-transition transition_id="register_courses"/> … … 224 225 new_state="admitted" trigger="USER" 225 226 before_script="" after_script=""> 226 227 227 228 <guard> 228 229 <guard-role>SectionOfficer</guard-role> … … 235 236 new_state="admission_applied" trigger="USER" 236 237 before_script="" after_script=""> 237 238 238 239 <guard> 239 240 <guard-role>SectionOfficer</guard-role> … … 246 247 new_state="cleared_and_validated" 247 248 trigger="USER" before_script="" after_script=""> 248 249 249 250 <guard> 250 251 <guard-role>SectionOfficer</guard-role> … … 257 258 new_state="student_created" trigger="USER" 258 259 before_script="" after_script=""> 259 260 260 261 <guard> 261 262 <guard-role>Manager</guard-role> … … 268 269 new_state="" trigger="USER" before_script="" 269 270 after_script=""> 270 271 271 272 <guard> 272 273 <guard-role>Manager</guard-role> … … 280 281 new_state="deferred" trigger="USER" 281 282 before_script="" after_script=""> 282 283 283 284 <guard> 284 285 <guard-role>SectionOfficer</guard-role> … … 291 292 new_state="application_pin_entered" 292 293 trigger="USER" before_script="" after_script=""> 293 294 294 295 <guard> 295 296 <guard-role>SectionOfficer</guard-role> … … 302 303 new_state="clearance_pin_entered" 303 304 trigger="USER" before_script="" after_script=""> 304 305 <guard> 306 <guard-role>SectionOfficer</guard-role> 307 <guard-role>Owner</guard-role> 308 <guard-role>Manager</guard-role> 309 <guard-role>SectionManager</guard-role> 310 </guard> 311 </transition> 312 <transition transition_id="enter_school_fee_pin" title="" 313 new_state="school_fee_pin_entered" 314 trigger="USER" before_script="" after_script=""> 315 316 <guard> 317 <guard-role>Manager</guard-role> 318 <guard-role>SectionManager</guard-role> 319 <guard-role>Owner</guard-role> 305 306 <guard> 307 <guard-role>SectionOfficer</guard-role> 308 <guard-role>Owner</guard-role> 309 <guard-role>Manager</guard-role> 310 <guard-role>SectionManager</guard-role> 320 311 </guard> 321 312 </transition> … … 323 314 new_state="finally_rejected" trigger="USER" 324 315 before_script="" after_script=""> 325 316 326 317 <guard> 327 318 <guard-role>SectionOfficer</guard-role> … … 332 323 </transition> 333 324 <transition transition_id="notify_change_courses" title="" 334 new_state="school_fee_p in_entered"335 trigger="USER"before_script="" after_script="">336 325 new_state="school_fee_paid" trigger="USER" 326 before_script="" after_script=""> 327 337 328 <guard> 338 329 <guard-role>CourseAdviser</guard-role> 339 330 <guard-role>Manager</guard-role> 340 331 <guard-role>SectionManager</guard-role> 332 </guard> 333 </transition> 334 <transition transition_id="pay_school_fee" title="" 335 new_state="school_fee_paid" trigger="USER" 336 before_script="" after_script=""> 337 338 <guard> 339 <guard-role>Manager</guard-role> 340 <guard-role>SectionManager</guard-role> 341 <guard-role>Owner</guard-role> 341 342 </guard> 342 343 </transition> … … 344 345 new_state="pume_failed" trigger="USER" 345 346 before_script="" after_script=""> 346 347 347 348 <guard> 348 349 <guard-role>SectionOfficer</guard-role> … … 355 356 new_state="pume_passed" trigger="USER" 356 357 before_script="" after_script=""> 357 358 358 359 <guard> 359 360 <guard-role>SectionOfficer</guard-role> … … 366 367 new_state="objection_raised" trigger="USER" 367 368 before_script="" after_script=""> 368 369 369 370 <guard> 370 371 <guard-role>SectionOfficer</guard-role> … … 378 379 new_state="courses_registered" trigger="USER" 379 380 before_script="" after_script=""> 380 381 381 382 <guard> 382 383 <guard-role>Manager</guard-role> … … 388 389 new_state="admission_rejected" trigger="USER" 389 390 before_script="" after_script=""> 390 391 391 392 <guard> 392 393 <guard-role>SectionOfficer</guard-role> … … 399 400 new_state="clearance_pin_entered" 400 401 trigger="USER" before_script="" after_script=""> 401 402 402 403 <guard> 403 404 <guard-role>SectionOfficer</guard-role> … … 410 411 new_state="clearance_requested" trigger="USER" 411 412 before_script="" after_script=""> 412 413 413 414 <guard> 414 415 <guard-role>SectionOfficer</guard-role> … … 421 422 new_state="returning" trigger="USER" 422 423 before_script="" after_script=""> 423 424 424 425 <guard> 425 426 <guard-role>SectionOfficer</guard-role> … … 431 432 new_state="courses_validated" trigger="USER" 432 433 before_script="" after_script=""> 433 434 434 435 <guard> 435 436 <guard-role>CourseAdviser</guard-role> … … 443 444 <description>Time of the last transition</description> 444 445 <default> 445 446 446 447 <expression>state_change/getDateTime</expression> 447 448 </default> -
WAeUP_SRP/trunk/skins/waeup_epayment/pay_by_sc.py
r1283 r1286 32 32 logger.info('"%s","certificate not found", "%s"' % (student_id,course)) 33 33 prefix = "" 34 else: 34 else: 35 35 prefix = res[0].getObject().getContent().school_fee_code 36 36 if not prefix or prefix == 'none': … … 77 77 now = DateTime.DateTime() 78 78 info['date'] = now 79 info['amount'] = "n/a" 79 info['amount'] = "n/a" 80 80 pin = info['order_id'] = ds.get('pin') 81 info['type_code'] = " schoolfee_%s" % pin82 info['type_description'] = 'School fee SC %s' % pin81 info['type_code'] = "%s" % pin 82 info['type_description'] = 'School Fee SC %s' % pin 83 83 payments.invokeFactory('Payment', p_id) 84 84 payment = getattr(payments,p_id) … … 87 87 payment.getContent().edit(mapping=info) 88 88 wftool.doActionFor(payment,'close') 89 wftool.doActionFor(student,' enter_school_fee_pin')89 wftool.doActionFor(student,'pay_school_fee') 90 90 url = "%s/payments" % (student.absolute_url()) 91 91 request.RESPONSE.redirect(url) -
WAeUP_SRP/trunk/skins/waeup_epayment/payments_view.pt
r1257 r1286 1 1 <metal:html tal:define="info context/getPaymentsFolderInfo; 2 is_s o info/is_so;2 is_student context/isStudent; 3 3 rows info/payments" 4 4 > … … 15 15 </a> 16 16 <h3> 17 <span tal:condition=" python:is_so">17 <span tal:condition="not:is_student"> 18 18 <span tal:content="info/student_name" />: 19 19 </span> 20 <span tal:condition="is_student"> 21 My 22 </span> 20 23 <span tal:content="here/title_or_id" /> 21 24 </h3> -
WAeUP_SRP/trunk/skins/waeup_student/getSchoolFeePrefix.py
r1274 r1286 18 18 if not res: 19 19 logger.info('"%s","certificate not found", "%s"' % (student_id,course)) 20 prefix = " "21 else: 20 prefix = "--" 21 else: 22 22 prefix = res[0].getObject().getContent().school_fee_code 23 23 if not prefix or prefix == 'none': -
WAeUP_SRP/trunk/skins/waeup_student/getStudentInfo.py
r1179 r1286 150 150 row['review_state'] = so.review_state 151 151 if info['review_state'] in ('returning', 152 'school_fee_p in_entered',152 'school_fee_paid', 153 153 'courses_registered', 154 154 'courses_validated',): … … 163 163 so.portal_type not in ('StudentPume',) or\ 164 164 so.portal_type == 'StudentStudyCourse' 165 165 166 166 items.append(row) 167 167 info['items'] = items -
WAeUP_SRP/trunk/skins/waeup_student/getStudentWorkflowInfo.py
r1184 r1286 29 29 review_state = info['review_state'] = wf.getInfoFor(student,'review_state',None) 30 30 info['returning'] = review_state in ('returning', 31 'school_fee_p in_entered',31 'school_fee_paid', 32 32 'courses_registered', 33 33 'courses_validated', -
WAeUP_SRP/trunk/skins/waeup_student/pay_by_sc_form.pt
r1274 r1286 13 13 </metal:block> 14 14 <metal:block fill-slot="main"> 15 <h3>Pay Your 200 5/2006 Schoolfee with Scratchcart!</h3>15 <h3>Pay Your 2006/2007 School Fee by Scratch Card!</h3> 16 16 <br /> 17 17 <div tal:replace="structure rendered_main" /> -
WAeUP_SRP/trunk/skins/waeup_student/portlet_student_workflow_display.pt
r1184 r1286 115 115 </td></tr> 116 116 </span> 117 <span tal:condition="python:info['review_state']=='school_fee_p in_entered'">117 <span tal:condition="python:info['review_state']=='school_fee_paid'"> 118 118 <tr><td class="active"> 119 119 <a href="" tal:attributes="href string:${info/url}/student_view"> … … 122 122 </td></tr> 123 123 </span> 124 <span tal:condition="python:info['review_state']!='school_fee_p in_entered'">124 <span tal:condition="python:info['review_state']!='school_fee_paid'"> 125 125 <tr><td> 126 126 School fee paid -
WAeUP_SRP/trunk/skins/waeup_student/search_students_form.pt
r1259 r1286 18 18 </span> 19 19 <span tal:condition="allowed" tal:omit-tag=""> 20 <a href="statistics_view"><strong>Student Statistics</strong></a> 20 <a href="statistics_new_view"><strong>New Student Statistics</strong></a> 21 22 <a href="statistics_ret_view"><strong>Returning Student Statistics</strong></a> 21 23 <h3> Search Student Section</h3><br /> 22 24 You are logged in as member <span tal:replace="info/member|nothing" />
Note: See TracChangeset for help on using the changeset viewer.