Ignore:
Timestamp:
2 May 2011, 09:21:22 (14 years ago)
Author:
Henrik Bettermann
Message:

Provide longtitle for all university instances. Use lontitle in breadcrumbs. Show faculty and department on certificatecoursepage.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/university/certificate.py

    r5977 r6008  
    1313from waeup.sirp.university.interfaces import (
    1414    ICertificate, ICertificateAdd, ICertificateCourse, ICourse)
     15from waeup.sirp.university.vocabularies import course_levels   
    1516
    1617class Certificate(grok.Container):
     
    5657
    5758    #review_state = property(getReviewState, setReviewState)
     59   
     60    def longtitle(self):
     61        return "%s (%s)" % (self.title,self.code) 
    5862   
    5963    def addCourseRef(self, course, level=100, core_or_elective=True):
     
    105109        """
    106110        return self.course.code
     111       
     112    def longtitle(self):
     113        return "%s in level %s" % (self.course.code,
     114                   course_levels.getTerm(self.level).title)   
    107115   
    108116class CertificateCourseFactory(grok.GlobalUtility):
Note: See TracChangeset for help on using the changeset viewer.