- Timestamp:
- 9 Nov 2006, 17:33:49 (18 years ago)
- Location:
- WAeUP_SRP/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/Widgets.py
r807 r816 292 292 293 293 valid = CPSStringWidget.validate(self, datastructure, **kw) 294 #import pdb;pdb.set_trace() 294 295 if not valid: 295 296 return 0 … … 312 313 datamodel = datastructure.getDataModel() 313 314 datamodel[self.fields[0]] = value 314 315 315 return not err 316 316 … … 455 455 def validate(self, datastructure, **kw): 456 456 """Validate datastructure and update datamodel.""" 457 #import pdb;pdb.set_trace()457 import pdb;pdb.set_trace() 458 458 widget_id = self.getWidgetId() 459 459 v = datastructure[widget_id] … … 466 466 pins = self.portal_pins 467 467 pin = "%(prefix)s%(b)s%(n)s" % vars() 468 do = 1 468 469 if self.reference == "": 469 470 ref = str(self.portal_membership.getAuthenticatedMember()) 470 471 else: 471 472 ref = datastructure[self.reference] 472 ok = pins.searchAndSetRecord(pin,ref,prefix) 473 while 1: 473 if datastructure.errors.get(self.reference) is not None: 474 do = 0 475 err = 'Invalid JAMB Number, PIN not used' 476 while do: 477 ok = pins.searchAndSetRecord(pin,ref,prefix) 474 478 if ok == -2: 475 479 err = 'You have already applied with a different PIN, please login.' -
WAeUP_SRP/trunk/profiles/default/actions.xml
r785 r816 154 154 url_expr="string:${portal_url}/reserve_accommodation" 155 155 visible="True"> 156 <permission> False</permission>156 <permission>View</permission> 157 157 </action> 158 158 <action title="Register Courses" action_id="register_courses" … … 160 160 url_expr="string:${portal_url}/register_courses" 161 161 visible="True"> 162 <permission> False</permission>162 <permission>View</permission> 163 163 </action> 164 164 <action title="Home" action_id="students_home" category="student_navigation" -
WAeUP_SRP/trunk/skins/waeup_student/students_index.py
r805 r816 20 20 return redirect("%s/srp_anonymous_view" % context.portal_url()) 21 21 22 campus = context.portal_catalog(meta_type = "University")[-1].getObject() 22 campus_url = "%s/campus" % (context.portal_url.getPortalPath()) 23 #campus = context.portal_catalog(meta_type = "University")[-1].getObject() 23 24 24 25 if context.isManager(): 25 return redirect("%s/searchStudents" % campus .students.absolute_url())26 return redirect("%s/searchStudents" % campus_url) 26 27 if context.isStudent(): 27 28 info = context.getStudentInfo()
Note: See TracChangeset for help on using the changeset viewer.