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.

Location:
main/waeup.sirp/trunk/src/waeup/sirp/university
Files:
3 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):
  • main/waeup.sirp/trunk/src/waeup/sirp/university/course.py

    r5953 r6008  
    2424        self.semester = semester
    2525       
     26    def longtitle(self):
     27        return "%s (%s)" % (self.title,self.code)       
     28       
    2629class CourseFactory(grok.GlobalUtility):
    2730    """A factory for courses.
  • main/waeup.sirp/trunk/src/waeup/sirp/university/interfaces.py

    r5995 r6008  
    154154        required = True,
    155155        )
     156       
     157    def longtitle():
     158        """
     159        Returns the long title of a course.
     160        """       
    156161
    157162class ICourseAdd(ICourse):
     
    221226        )   
    222227
     228    def longtitle():
     229        """
     230        Returns the long title of a certificate.
     231        """       
     232
    223233class ICertificateAdd(ICertificate):
    224234    """Representation of a certificate.
     
    273283        """
    274284       
     285    def longtitle():
     286        """
     287        Returns the long title of a certificatecourse.
     288        """         
     289       
    275290       
    276291class ICertificateCourseAdd(ICertificateCourse):
Note: See TracChangeset for help on using the changeset viewer.