Changeset 2579
- Timestamp:
- 8 Nov 2007, 10:14:35 (17 years ago)
- Location:
- WAeUP_SRP
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/WAeUPTables.py
r2561 r2579 517 517 518 518 records = self.searchResults(student = student_id) 519 if len(records) > 0 and prefix in ('CLR','APP'):520 for r in records:521 if r.pin != uid and r.prefix_batch.startswith(prefix):522 return -2519 #if len(records) > 0 and prefix in ('CLR','APP'): 520 # for r in records: 521 # if r.pin != uid and r.prefix_batch.startswith(prefix): 522 # return -2 523 523 records = self.searchResults({"%s" % self.key : uid}) 524 524 if len(records) > 1: -
WAeUP_SRP/base/WAeUPTool.py
r2576 r2579 658 658 password = pin_parts[2] 659 659 self.makeStudentMember(student_id,password = password) 660 else:661 self.makeStudentMember(student_id)662 660 student_object.manage_setLocalRoles(student_id, ['Owner',]) 663 661 #logger.info("creating %s reg_no %s" % (student_id,brain.reg_no)) -
WAeUP_SRP/base/skins/cps_custom/logged_in.py
r2489 r2579 149 149 # 1. add pin and application date to app_doc 150 150 151 if s_review_state in ("student_created","admitted") and\ 152 a_review_state == 'created' : 151 if s_review_state == "student_created": 152 wftool.doActionFor(student,'admit') 153 s_review_state = 'admitted' 154 155 if s_review_state == "admitted" and a_review_state == 'created': 153 156 wftool.doActionFor(student_app,'open') 154 157 #if student_pume is not None: … … 231 234 lnr = context.getLevelFromResultsCosCode(has_results) 232 235 dsc['current_level'] = "%d00" % lnr 233 elif not has_level and s_review_state == 'school_fee_paid': 236 elif not has_level and s_review_state == 'school_fee_paid': 234 237 lnr = context.getLevelFromResultsCosCode(has_results) 235 238 cv = context.getVerdict(has_results[0].Verdict)[0] -
WAeUP_SRP/base/skins/waeup_default/waeup_edit_form.pt
r2042 r2579 109 109 </div> 110 110 111 <tal:block condition="python: 0 and not creation">112 <div class="tooltipArea" style="visibility: hidden;"113 id="transition_comments_help"114 onclick="showElement(false, 'transition_comments_help')"115 i18n:translate="help_transition_comments_modification">116 In this field you can give the reason for the modification117 on this document. Your comments may be used to notify other users.118 </div>119 <dl>120 <dt><label for="comments"121 i18n:translate="transition_comments_modification"122 >Reason of the modification</label>123 <button type="button" class="tooltipControl"124 onclick="toggleElementVisibility('transition_comments_help')"> ? </button>125 </dt>126 <dd>127 <textarea name="comments" id="comments" cols="60" rows="3"128 tal:content="nothing">129 </textarea>130 </dd>131 </dl>132 </tal:block>133 111 <metal:block use-macro="python:path('context/%s_edit_buttons/macros/buttons' % form_type)"/> 134 112 </div> -
WAeUP_SRP/base/skins/waeup_layout/layout_application_edit.pt
r2243 r2579 1 <metal:block define-macro="default_edit" 1 <metal:define tal:define="isStaff context/isStaff; 2 isStudent context/isStudent;"> 3 4 <metal:block tal:condition="isStaff"> 5 <metal:block use-macro="here/layout_waeup_edit/macros/default_edit"/> 6 </metal:block> 7 8 9 <metal:block define-macro="application_student_edit" 10 tal:condition="isStudent" 2 11 tal:define="layout options/layout; 3 12 ds options/datastructure; … … 8 17 proceed options/proceed|nothing; 9 18 widgets python:context.getRenderedWidgets(layout); 10 "> 19 fields python:( 'app_email', 20 'app_mobile',)"> 11 21 <table class="layoutDefault" summary="Form layout" 12 22 tal:condition="layout/rows"> … … 107 117 </table> 108 118 </metal:block> 119 </metal:define> -
WAeUP_SRP/base/skins/waeup_student/admission_form.pt
r1808 r2579 30 30 tal:content="structure python: info['app_doc'].render(proxy=info['app_doc'], 31 31 layout_mode='view_info', 32 layout_id='student_application _fe')"32 layout_id='student_application')" 33 33 /> 34 34 -
WAeUP_SRP/base/skins/waeup_student/admission_slip.pt
r1977 r2579 20 20 tal:content="structure python: info['app_doc'].render(proxy=info['app_doc'], 21 21 layout_mode='view_info', 22 layout_id='student_application _fe')"22 layout_id='student_application')" 23 23 /> 24 24 -
WAeUP_SRP/base/skins/waeup_student/application_edit.py
r2390 r2579 39 39 is_valid, ds = app_doc.validate(request=REQUEST, 40 40 schema_id = 'student_application', 41 layout_id = 'student_application _fe',41 layout_id = 'student_application', 42 42 proxy=app, 43 43 use_session=False) -
WAeUP_SRP/base/skins/waeup_student/clearance_slip.pt
r1737 r2579 14 14 tal:content="structure python: info['app_doc'].render(proxy=info['app_doc'], 15 15 layout_mode='view_info', 16 layout_id='student_application _fe')"16 layout_id='student_application')" 17 17 /> 18 18 -
WAeUP_SRP/base/skins/waeup_student/course_registration_slip.pt
r2489 r2579 31 31 tal:content="structure python: info['app_doc'].render(proxy=info['app_doc'], 32 32 layout_mode='view_info', 33 layout_id='student_application _fe')"33 layout_id='student_application')" 34 34 /> 35 35 <table cellpadding="2" cellspacing="0"> -
WAeUP_SRP/fceokene/profiles/default/workflows/waeup_student_wf/definition.xml
r2572 r2579 217 217 new_state="admitted" trigger="USER" 218 218 before_script="" after_script=""> 219 220 219 220 221 221 <guard> 222 222 <guard-role>SectionOfficer</guard-role> … … 224 224 <guard-role>Manager</guard-role> 225 225 <guard-role>SectionManager</guard-role> 226 <guard-role>Owner</guard-role> 226 227 </guard> 227 228 </transition> … … 229 230 new_state="cleared_and_validated" 230 231 trigger="USER" before_script="" after_script=""> 231 232 232 233 233 234 <guard> 234 235 <guard-role>SectionOfficer</guard-role> … … 241 242 new_state="student_created" trigger="USER" 242 243 before_script="" after_script=""> 243 244 244 245 245 246 <guard> 246 247 <guard-role>Manager</guard-role> … … 254 255 new_state="" trigger="USER" before_script="" 255 256 after_script=""> 256 257 257 258 258 259 <guard> 259 260 <guard-role>Manager</guard-role> … … 268 269 new_state="deactivated" trigger="USER" 269 270 before_script="" after_script=""> 270 271 271 272 272 273 <guard> 273 274 <guard-role>SectionOfficer</guard-role> … … 279 280 new_state="deferred" trigger="USER" 280 281 before_script="" after_script=""> 281 282 282 283 283 284 <guard> 284 285 <guard-role>SectionOfficer</guard-role> … … 291 292 new_state="clearance_pin_entered" 292 293 trigger="USER" before_script="" after_script=""> 293 294 294 295 295 296 <guard> 296 297 <guard-role>SectionOfficer</guard-role> … … 303 304 new_state="school_fee_paid" trigger="USER" 304 305 before_script="" after_script=""> 305 306 306 307 307 308 <guard> 308 309 <guard-role>Manager</guard-role> … … 315 316 new_state="objection_raised" trigger="USER" 316 317 before_script="" after_script=""> 317 318 318 319 319 320 <guard> 320 321 <guard-role>SectionOfficer</guard-role> … … 328 329 new_state="courses_registered" trigger="USER" 329 330 before_script="" after_script=""> 330 331 331 332 332 333 <guard> 333 334 <guard-role>CourseAdviser</guard-role> … … 341 342 new_state="clearance_pin_entered" 342 343 trigger="USER" before_script="" after_script=""> 343 344 344 345 345 346 <guard> 346 347 <guard-role>SectionOfficer</guard-role> … … 353 354 new_state="school_fee_paid" trigger="USER" 354 355 before_script="" after_script=""> 355 356 356 357 357 358 <guard> 358 359 <guard-role>CourseAdviser</guard-role> … … 365 366 new_state="clearance_requested" trigger="USER" 366 367 before_script="" after_script=""> 367 368 368 369 369 370 <guard> 370 371 <guard-role>SectionOfficer</guard-role> … … 377 378 new_state="returning" trigger="USER" 378 379 before_script="" after_script=""> 379 380 380 381 381 382 <guard> 382 383 <guard-role>SectionOfficer</guard-role> … … 388 389 new_state="courses_validated" trigger="USER" 389 390 before_script="" after_script=""> 390 391 391 392 392 393 <guard> 393 394 <guard-role>CourseAdviser</guard-role> … … 401 402 <description>Time of the last transition</description> 402 403 <default> 403 404 404 405 <expression>state_change/getDateTime</expression> 405 406 </default>
Note: See TracChangeset for help on using the changeset viewer.