Changeset 2579 for WAeUP_SRP/base
- Timestamp:
- 8 Nov 2007, 10:14:35 (17 years ago)
- Location:
- WAeUP_SRP/base
- Files:
-
- 10 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">
Note: See TracChangeset for help on using the changeset viewer.