Changeset 2912 for WAeUP_SRP/base
- Timestamp:
- 10 Dec 2007, 20:11:24 (17 years ago)
- Location:
- WAeUP_SRP/base
- Files:
-
- 2 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']:
Note: See TracChangeset for help on using the changeset viewer.