Changeset 3392
- Timestamp:
- 28 Mar 2008, 10:07:38 (17 years ago)
- Location:
- WAeUP_SRP/base
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/Widgets.py
r3369 r3392 1219 1219 {'id': 'reuse_pin', 'type': 'boolean', 'mode': 'w', 1220 1220 'label': 'Reuse Application Pin'}, 1221 {'id': 'expiration_date', 'type': 'date', 'mode': 'w', 1222 'label': 'Exspiration Date'}, 1221 1223 ) 1222 1224 prefix = '' 1223 1225 reference = '' 1224 1226 reuse_pin = False 1225 1227 1226 1228 def prepare(self, datastructure, **kw): ###( 1227 1229 """Prepare datastructure from datamodel.""" … … 1471 1473 member_id = str(self.portal_membership.getAuthenticatedMember()) 1472 1474 do = 1 1475 expiration_date = self.REQUEST.get('expiration_date') 1473 1476 if self.isStaff(): 1474 1477 do = 0 … … 1501 1504 s_logger.info('%s/%s entered wrong data together with PIN %s' % (member_id,ref,pin_str)) 1502 1505 while do: 1506 if expiration_date and DateTime(expiration_date).lessThan(DateTime()): 1507 if not pins(student=ref): 1508 #import pdb;pdb.set_trace() 1509 err = 'no application record found' 1510 s_logger.info('%s/%s tried new application though expired with PIN %s' % (member_id,ref,pin_str)) 1511 break 1503 1512 ok,pin_record = pins.searchAndSetRecord(pin,ref,prefix) 1504 1513 if ok < -2 or ok > 2: -
WAeUP_SRP/base/doc/srp_documentation.mm
r3172 r3392 2 2 <!-- To view this file, download free mind mapping software FreeMind from http://freemind.sourceforge.net --> 3 3 <node CREATED="1170079518946" ID="Freemind_Link_650524897" MODIFIED="1172489583516" TEXT="WAeUP Documentation"> 4 <node CREATED="1172489529057" FOLDED="true"ID="Freemind_Link_43083883" MODIFIED="1172489545651" POSITION="right" TEXT="SRP Data Structure">4 <node CREATED="1172489529057" ID="Freemind_Link_43083883" MODIFIED="1172489545651" POSITION="right" TEXT="SRP Data Structure"> 5 5 <node CREATED="1170079621592" ID="Freemind_Link_1297017754" MODIFIED="1170079640872" TEXT="Campus"> 6 6 <node CREATED="1171710559043" ID="Freemind_Link_1592396213" MODIFIED="1171710565212" TEXT="Id: campus"/> … … 232 232 </node> 233 233 </node> 234 <node CREATED="1206110102419" ID="ID_535009408" MODIFIED="1206110113139" TEXT="Data Import"> 235 <node CREATED="1206110116296" ID="ID_1977539873" MODIFIED="1206110147170" TEXT="Student"> 236 <node CREATED="1171124926993" ID="ID_677833643" LINK="../profiles/default/schemas/import_student.xml" MODIFIED="1206110297279" TEXT="Schema: import_student"/> 237 <node CREATED="1171124982312" ID="ID_246147802" LINK="../profiles/default/layouts/import_student.xml" MODIFIED="1206110362376" TEXT="Layout: import_student"/> 238 </node> 239 <node CREATED="1206110116296" ID="ID_53520087" MODIFIED="1206110772812" TEXT="Student Study Level"> 240 <node CREATED="1171124926993" ID="ID_275196857" LINK="../profiles/default/schemas/import_student_study_level.xml" MODIFIED="1206110496797" TEXT="Schema: import_student_study_level"/> 241 <node CREATED="1171124982312" ID="ID_1813331706" LINK="../profiles/default/layouts/import_student_study_level.xml" MODIFIED="1206110506764" TEXT="Layout: import_student_study_level"/> 242 </node> 243 <node CREATED="1206110116296" ID="ID_1116667508" MODIFIED="1206110589175" TEXT="Student Course Results"> 244 <node CREATED="1171124926993" ID="ID_1895773400" LINK="../profiles/default/schemas/import_course_result.xml" MODIFIED="1206110707820" TEXT="Schema: import_course_result"/> 245 <node CREATED="1171124982312" ID="ID_1828896749" LINK="../profiles/default/layouts/import_course_result.xml" MODIFIED="1206110733175" TEXT="Layout: import_course_result"/> 246 </node> 247 </node> 234 248 </node> 235 249 <node CREATED="1171379675232" FOLDED="true" ID="Freemind_Link_41196870" MODIFIED="1171379685192" TEXT="User Interface"> -
WAeUP_SRP/base/skins/waeup_student/apply_admission.py
r3342 r3392 163 163 without_reg_no = screening_type in ('prence','cest','sandwich') 164 164 info['expired'] = current.greaterThan(deaddates[screening_type]) 165 info['expiration_date'] = deaddates[screening_type] 165 166 166 167 … … 176 177 ob=object, 177 178 commit = False, 179 expiration_date = deaddates[screening_type], 178 180 ) 179 181 if slip: -
WAeUP_SRP/base/skins/waeup_student/apply_admission_form.pt
r3384 r3392 35 35 tal:attributes="value ds/pin|nothing" 36 36 tal:condition="ds/pin|nothing"/> 37 <input type="hidden" name="expiration_date" 38 tal:attributes="value info/expiration_date|nothing" 39 tal:condition="info/expiration_date|nothing"/> 37 40 38 41 <div tal:replace="structure rendered_main" />
Note: See TracChangeset for help on using the changeset viewer.