Ignore:
Timestamp:
29 Apr 2008, 09:24:51 (17 years ago)
Author:
joachim
Message:

remove Title from all StudentObjects?,
adjust templates to use getStudentObjectitles,
remove waeup_academics.getDocumentInfo (was duplicate),
do not use portal_catalog for listing faculties and departments.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/Students.py

    r3454 r3473  
    707707    security = ClassSecurityInfo()
    708708
    709     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
     709    # 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
    721721
    722722
     
    738738    security = ClassSecurityInfo()
    739739
    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"
    746746
    747747
     
    763763    security = ClassSecurityInfo()
    764764
    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"
    771771
    772772
     
    788788    security = ClassSecurityInfo()
    789789
    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()
    795795
    796796    def create_course_results(self,cert_id,current_level): ###(
     
    835835    security = ClassSecurityInfo()
    836836
    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"
    842842
    843843
     
    859859    security = ClassSecurityInfo()
    860860
    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"
    865865
    866866
     
    890890            return None
    891891
    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 
     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 
    901901InitializeClass(StudentCourseResult)
    902902
     
    915915    security = ClassSecurityInfo()
    916916
    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"
    921921
    922922
Note: See TracChangeset for help on using the changeset viewer.