Changeset 6561


Ignore:
Timestamp:
27 Jul 2011, 11:42:51 (13 years ago)
Author:
uli
Message:

Clean up.

File:
1 edited

Legend:

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

    r6345 r6561  
    44from zope.interface import Attribute
    55from waeup.sirp.interfaces import (IWAeUPObject, IWAeUPContainer)
    6                                    
     6
    77from waeup.sirp.university.vocabularies import (
    88    course_levels,
     
    3737        required = True,
    3838        )
    39        
     39
    4040    def longtitle():
    4141        """
    4242        Returns the long title of a faculty.
    43         """       
    44        
     43        """
     44
    4545class IFacultyAdd(IFaculty):
    4646    """Representation of a university faculty.
     
    5353        readonly = False,
    5454        )
    55                  
    56 IFacultyAdd['code'].order =  IFaculty['code'].order           
    57    
     55
     56IFacultyAdd['code'].order =  IFaculty['code'].order
     57
    5858class IFacultyContainer(IWAeUPContainer):
    5959    """A container for faculties.
     
    8989    courses = Attribute("A container for courses.")
    9090    certificates = Attribute("A container for certificates.")
    91    
     91
    9292    def longtitle():
    9393        """
    9494        Returns the long title of a department.
    9595        """
    96        
     96
    9797class IDepartmentAdd(IDepartment):
    9898    """Representation of a university department.
     
    105105        readonly = False,
    106106        )
    107                  
    108 IDepartmentAdd['code'].order =  IDepartment['code'].order         
     107
     108IDepartmentAdd['code'].order =  IDepartment['code'].order
    109109
    110110class ICourseContainer(IWAeUPContainer):
     
    138138        required = False,
    139139        )
    140    
     140
    141141    passmark = schema.Int(
    142142        title = u'Passmark',
     
    151151        required = True,
    152152        )
    153        
     153
    154154    def longtitle():
    155155        """
    156156        Returns the long title of a course.
    157         """       
     157        """
    158158
    159159class ICourseAdd(ICourse):
     
    167167        readonly = False,
    168168        )
    169        
    170 ICourseAdd['code'].order =  ICourse['code'].order         
     169
     170ICourseAdd['code'].order =  ICourse['code'].order
    171171
    172172class ICertificate(IWAeUPObject):
     
    195195    start_level = schema.Choice(
    196196        title = u'Start Level',
    197         #source = LevelSource(),
    198197        vocabulary = course_levels,
    199198        default = 100,
    200199        required = True,
    201200        )
    202    
     201
    203202    end_level = schema.Choice(
    204203        title = u'End Level',
    205         #source = LevelSource(),
    206204        vocabulary = course_levels,
    207205        default = 500,
    208206        required = True,
    209207        )
    210    
     208
    211209    application_category = schema.Choice(
    212210        title = u'Application Category',
     
    214212        default = u'basic',
    215213        required = True,
    216         )   
     214        )
    217215
    218216    def longtitle():
    219217        """
    220218        Returns the long title of a certificate.
    221         """       
     219        """
    222220
    223221class ICertificateAdd(ICertificate):
     
    231229        readonly = False,
    232230        )
    233        
    234 ICertificateAdd['code'].order =  ICertificate['code'].order         
    235    
     231
     232ICertificateAdd['code'].order =  ICertificate['code'].order
     233
    236234class ICertificateContainer(IWAeUPContainer):
    237235    """A container for certificates.
     
    244242
    245243class ICertificateCourse(IWAeUPObject):
    246     """A certificatecourse is referring a course and
    247        provides some own attributes.
     244    """A certificatecourse is referring a course and provides some own
     245       attributes.
    248246    """
    249247    course = schema.Choice(
     
    252250        readonly = True,
    253251        )
    254    
     252
    255253    level = schema.Choice(
    256254        title = u'Level',
    257255        required = True,
    258         #source = LevelSource(),
    259256        vocabulary = course_levels,
    260257        readonly = False,
     
    272269        This is needed for cataloging.
    273270        """
    274        
     271
    275272    def longtitle():
    276273        """
    277274        Returns the long title of a certificatecourse.
    278         """         
    279        
    280        
     275        """
     276
     277
    281278class ICertificateCourseAdd(ICertificateCourse):
    282     """A certificatecourse is referring a course and 
     279    """A certificatecourse is referring a course and
    283280       provides some own attributes.
    284281    """
     
    288285        readonly = False,
    289286        )
    290                  
    291 ICertificateCourseAdd['course'].order =  ICertificateCourse['course'].order                 
     287
     288ICertificateCourseAdd['course'].order =  ICertificateCourse['course'].order
Note: See TracChangeset for help on using the changeset viewer.