Changeset 7349 for main/waeup.sirp/trunk


Ignore:
Timestamp:
15 Dec 2011, 11:18:39 (13 years ago)
Author:
uli
Message:

As I am here: remove trailing whitespace.

File:
1 edited

Legend:

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

    r7334 r7349  
    2626from waeup.sirp.university.interfaces import (
    2727    ICertificate, ICertificateAdd, ICertificateCourse)
    28 from waeup.sirp.university.vocabularies import course_levels   
     28from waeup.sirp.university.vocabularies import course_levels
    2929
    3030class Certificate(grok.Container):
     
    5555
    5656    def longtitle(self):
    57         return "%s (%s)" % (self.title,self.code) 
    58    
     57        return "%s (%s)" % (self.title,self.code)
     58
    5959    def addCourseRef(self, course, level=100, core_or_elective=True):
    6060        """Add a course referrer.
     
    106106        """
    107107        return self.course.code
    108        
     108
    109109    def longtitle(self):
    110110        return "%s in level %s" % (self.course.code,
    111                    course_levels.getTerm(self.level).title)   
    112    
     111                   course_levels.getTerm(self.level).title)
     112
    113113class CertificateCourseFactory(grok.GlobalUtility):
    114114    """A factory for certificate courses.
     
    145145        studycourse.certificate = None
    146146        notify(grok.ObjectModifiedEvent(student))
    147         #event_name = event.__implemented__.__name__.replace(
    148         #    'zope.lifecycleevent.','')
    149147        student.loggerInfo('ObjectRemovedEvent', 'removed: certificate')
    150148    return
Note: See TracChangeset for help on using the changeset viewer.