Changeset 3473 for WAeUP_SRP/base/Students.py
- Timestamp:
- 29 Apr 2008, 09:24:51 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/Students.py
r3454 r3473 707 707 security = ClassSecurityInfo() 708 708 709 security.declareProtected(View,"Title")710 def Title(self):711 """compose title"""712 content = self.getContent()713 session_id = content.session714 try:715 y = int(session_id[-2:])716 except:717 return "Accommodation Data for Session %s" % session_id718 session_str = self.portal_vocabularies.sessions.get(y)719 #return "Accommodation Data for %s %s" % (content.firstname,content.lastname)720 return "Accommodation Data for Session %s" % session_str709 # security.declareProtected(View,"Title") 710 # def Title(self): 711 # """compose title""" 712 # content = self.getContent() 713 # session_id = content.session 714 # try: 715 # y = int(session_id[-2:]) 716 # except: 717 # return "Accommodation Data for Session %s" % session_id 718 # session_str = self.portal_vocabularies.sessions.get(y) 719 # #return "Accommodation Data for %s %s" % (content.firstname,content.lastname) 720 # return "Accommodation Data for Session %s" % session_str 721 721 722 722 … … 738 738 security = ClassSecurityInfo() 739 739 740 security.declareProtected(View,"Title")741 def Title(self):742 """compose title"""743 #content = self.getContent()744 #return "Personal Data for %s %s" % (content.firstname,content.lastname)745 return "Personal Data"740 # security.declareProtected(View,"Title") 741 # def Title(self): 742 # """compose title""" 743 # #content = self.getContent() 744 # #return "Personal Data for %s %s" % (content.firstname,content.lastname) 745 # return "Personal Data" 746 746 747 747 … … 763 763 security = ClassSecurityInfo() 764 764 765 security.declareProtected(View,"Title")766 def Title(self):767 """compose title"""768 #content = self.getContent()769 #return "Clearance/Eligibility Record for %s %s" % (content.firstname,content.lastname)770 return "Clearance/Eligibility Record"765 # security.declareProtected(View,"Title") 766 # def Title(self): 767 # """compose title""" 768 # #content = self.getContent() 769 # #return "Clearance/Eligibility Record for %s %s" % (content.firstname,content.lastname) 770 # return "Clearance/Eligibility Record" 771 771 772 772 … … 788 788 security = ClassSecurityInfo() 789 789 790 security.declareProtected(View,"Title")791 def Title(self):792 """compose title"""793 return self.portal_vocabularies.student_levels.get(self.aq_parent.getId())794 #return "Level %s" % self.aq_parent.getId()790 # security.declareProtected(View,"Title") 791 # def Title(self): 792 # """compose title""" 793 # return self.portal_vocabularies.student_levels.get(self.aq_parent.getId()) 794 # #return "Level %s" % self.aq_parent.getId() 795 795 796 796 def create_course_results(self,cert_id,current_level): ###( … … 835 835 security = ClassSecurityInfo() 836 836 837 security.declareProtected(View,"Title")838 def Title(self):839 """compose title"""840 #content = self.getContent()841 return "Study Course"837 # security.declareProtected(View,"Title") 838 # def Title(self): 839 # """compose title""" 840 # #content = self.getContent() 841 # return "Study Course" 842 842 843 843 … … 859 859 security = ClassSecurityInfo() 860 860 861 security.declareProtected(View,"Title")862 def Title(self):863 """compose title"""864 return "Application Data"861 # security.declareProtected(View,"Title") 862 # def Title(self): 863 # """compose title""" 864 # return "Application Data" 865 865 866 866 … … 890 890 return None 891 891 892 security.declareProtected(View,"Title")893 def Title(self):894 """compose title"""895 cid = self.aq_parent.getId()896 ce = self.getCourseEntry(cid)897 if ce:898 return "%s" % ce.Title899 return "No course with id %s" % cid900 892 # security.declareProtected(View,"Title") 893 # def Title(self): 894 # """compose title""" 895 # cid = self.aq_parent.getId() 896 # ce = self.getCourseEntry(cid) 897 # if ce: 898 # return "%s" % ce.Title 899 # return "No course with id %s" % cid 900 901 901 InitializeClass(StudentCourseResult) 902 902 … … 915 915 security = ClassSecurityInfo() 916 916 917 security.declareProtected(View,"Title")918 def Title(self):919 """compose title"""920 return "PUME Results"917 # security.declareProtected(View,"Title") 918 # def Title(self): 919 # """compose title""" 920 # return "PUME Results" 921 921 922 922
Note: See TracChangeset for help on using the changeset viewer.