- Timestamp:
- 10 Dec 2007, 20:11:24 (17 years ago)
- Location:
- WAeUP_SRP
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/Students.py
r2662 r2912 219 219 continue 220 220 try: 221 icl = int(old_current_level) 221 icl = int(old_current_level) 222 222 if icl == int(old_current_level) and old_study_course == new_study_course: 223 223 em = 'Already transferred' … … 594 594 """compose title""" 595 595 content = self.getContent() 596 session_str = self.portal_vocabularies.sessions.get(content.session) 596 597 #return "Accommodation Data for %s %s" % (content.firstname,content.lastname) 597 return "Accommodation Data for Session %s" % content.session598 return "Accommodation Data for Session %s" % session_str 598 599 599 600 … … 618 619 def Title(self): 619 620 """compose title""" 620 content = self.getContent()621 #content = self.getContent() 621 622 #return "Personal Data for %s %s" % (content.firstname,content.lastname) 622 623 return "Personal Data" … … 643 644 def Title(self): 644 645 """compose title""" 645 content = self.getContent()646 #content = self.getContent() 646 647 #return "Clearance/Eligibility Record for %s %s" % (content.firstname,content.lastname) 647 648 return "Clearance/Eligibility Record" … … 715 716 def Title(self): 716 717 """compose title""" 717 content = self.getContent()718 #content = self.getContent() 718 719 return "Study Course" 719 720 … … 750 751 ###) 751 752 752 class StudentPume(CPSDocument): ###(753 """754 WAeUP Student container for the various student data755 """756 meta_type = 'StudentPume'757 portal_type = meta_type758 security = ClassSecurityInfo()759 760 security.declareProtected(View,"Title")761 def Title(self):762 """compose title"""763 return "PUME Results"764 765 766 InitializeClass(StudentPume)767 768 def addStudentPume(container, id, REQUEST=None, **kw):769 """Add a Students PUME data."""770 ob = StudentPume(id, **kw)771 return CPSBase_adder(container, ob, REQUEST=REQUEST)772 ###)773 774 ##class StudentSemester(CPSDocument): ###(775 ## """776 ## WAeUP StudentSemester containing the courses and students777 ## """778 ## meta_type = 'StudentSemester'779 ## portal_type = meta_type780 ## security = ClassSecurityInfo()781 ##782 ##InitializeClass(StudentSemester)783 ##784 ##def addStudentSemester(container, id, REQUEST=None, **kw):785 ## """Add a StudentSemester."""786 ## ob = StudentSemester(id, **kw)787 ## return CPSBase_adder(container, ob, REQUEST=REQUEST)788 ##789 #####)790 791 ##class Semester(CPSDocument): ###(792 ## """793 ## WAeUP Semester containing the courses and students794 ## """795 ## meta_type = 'Semester'796 ## portal_type = meta_type797 ## security = ClassSecurityInfo()798 ##799 ##InitializeClass(Semester)800 ##801 ##def addSemester(container, id, REQUEST=None, **kw):802 ## """Add a Semester."""803 ## ob = Semester(id, **kw)804 ## return CPSBase_adder(container, ob, REQUEST=REQUEST)805 ##806 #####)807 753 808 754 class StudentCourseResult(CPSDocument): ###( … … 839 785 ###) 840 786 787 class StudentPume(CPSDocument): ###( 788 """ 789 WAeUP Student container for the various student data 790 """ 791 meta_type = 'StudentPume' 792 portal_type = meta_type 793 security = ClassSecurityInfo() 794 795 security.declareProtected(View,"Title") 796 def Title(self): 797 """compose title""" 798 return "PUME Results" 799 800 801 InitializeClass(StudentPume) 802 803 def addStudentPume(container, id, REQUEST=None, **kw): 804 """Add a Students PUME data.""" 805 ob = StudentPume(id, **kw) 806 return CPSBase_adder(container, ob, REQUEST=REQUEST) 807 808 809 841 810 # Backward Compatibility StudyLevel 842 811 -
WAeUP_SRP/base/skins/waeup_student/reserve_accommodation.py
r2887 r2912 40 40 acco_id = info['acco_id'] 41 41 #session = info['session'][1] 42 session = info['session'] 43 #session = acco_id[-4:] 42 session = info['session'][0] 43 44 44 validate = REQUEST.has_key("cpsdocument_create_button") 45 45 if info.has_key('acco') and info['acco']: -
WAeUP_SRP/uniben/profiles/default/layouts/student_accommodation.xml
r2858 r2912 39 39 </widget> 40 40 <widget name="acco_maint_fee" meta_type="String Widget"> 41 <property name="title">Maintenance PaymentFee</property>41 <property name="title">Maintenance Fee</property> 42 42 <property name="fields"> 43 43 <element value="acco_maint_fee"/> 44 44 </property> 45 <property name="label">Maintenance PaymentFee</property>46 <property name="label_edit">Maintenance PaymentFee</property>45 <property name="label">Maintenance Fee</property> 46 <property name="label_edit">Maintenance Fee</property> 47 47 <property name="readonly_layout_modes"> 48 48 <element value="edit"/> -
WAeUP_SRP/uniben/profiles/default/layouts/student_accommodation_fe.xml
r2896 r2912 22 22 <property name="hidden_readonly_layout_modes"/> 23 23 <property name="view_format">%d/%m/%Y</property> 24 <property name="time_setting">False</property> 24 <property name="time_setting">False</property> 25 25 </widget> 26 26 <widget name="acco_maint_sc_pin" meta_type="Scratchcard Pin Widget"> … … 38 38 <property name="prefix">@getMaintenancePrefix</property> 39 39 </widget> 40 <widget name="acco_maint_fee" meta_type="String Widget"> 41 <property name="title">Maintenance Fee</property> 42 <property name="fields"> 43 <element value="acco_maint_fee"/> 44 </property> 45 <property name="label">Maintenance Fee</property> 46 <property name="label_edit">Maintenance Fee</property> 47 <property name="readonly_layout_modes"> 48 <element value="edit"/> 49 </property> 50 <property name="hidden_layout_modes"> 51 <element value="create"/> 52 </property> 53 <property name="hidden_readonly_layout_modes"/> 54 </widget> 40 55 <widget name="acco_res_date" meta_type="DateTime Widget"> 41 56 <property name="title">Hostel Application Date</property> … … 53 68 <property name="hidden_readonly_layout_modes"/> 54 69 <property name="view_format">%d/%m/%Y</property> 55 <property name="time_setting">False</property> 70 <property name="time_setting">False</property> 56 71 </widget> 57 72 <widget name="acco_res_sc_pin" meta_type="Scratchcard Pin Widget"> … … 129 144 </row> 130 145 <row> 146 <cell name="acco_maint_fee"/> 147 </row> 148 <row> 131 149 <cell name="acco_maint_date"/> 132 150 </row> -
WAeUP_SRP/uniben/waeup_custom/getPaymentsFolderInfo.py
r2859 r2912 35 35 import DateTime 36 36 request = context.REQUEST 37 #students = context.portal_url.getPortalObject().campus.students37 students = context.portal_url.getPortalObject().campus.students 38 38 student_id = context.getStudentId() 39 39 if student_id is None: 40 40 return context.REQUEST.RESPONSE.redirect("%s/srp_anonymous_view" % context.portal_url()) 41 #student = getattr(students,student_id)41 student = getattr(students,student_id) 42 42 student_record = context.students_catalog.getRecordByKey(student_id) 43 43 context['updatePayments']() … … 95 95 if review_state == 'opened' and info['review_state'] == 'cleared_and_validated' and hasattr(so_doc, 'order_id') and not so_doc.resp_code: 96 96 row['is_requeryable'] = True 97 row['callback_url'] = "%s/interswitch_cb" % (payments_path) 97 row['callback_url'] = "%s/payments/%s/interswitch_cb" % (student.absolute_url(), 98 so.getId) 98 99 href = '%(query_url)s' % info 99 100 href += '?transRef=%(trans_ref)s' % row -
WAeUP_SRP/uniben/waeup_custom/layout_student_acco_view_slip.pt
r2847 r2912 9 9 'acco_res_date', 10 10 'acco_maint_sc_pin', 11 'acco_maint_fee', 11 12 'acco_maint_date', 12 13 )"
Note: See TracChangeset for help on using the changeset viewer.