Changeset 6089


Ignore:
Timestamp:
15 May 2011, 00:58:16 (13 years ago)
Author:
uli
Message:

Fix missing trailing newline.
Fix tons of trailing whitespaces.

File:
1 edited

Legend:

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

    r6087 r6089  
    1313
    1414inst_types = SimpleWAeUPVocabulary(
    15              ('Faculty of','faculty'),
    16              ('Department of','department'),
    17              ('School of','school_of'),
    18              ('School for','school_for'),
    19              ('Institute of','institute'),
    20              ('Office for','office'),
    21              ('Centre for','centre'),
    22              ('College','college'),
    23              )
    24                                    
     15    ('Faculty of','faculty'),
     16    ('Department of','department'),
     17    ('School of','school_of'),
     18    ('School for','school_for'),
     19    ('Institute of','institute'),
     20    ('Office for','office'),
     21    ('Centre for','centre'),
     22    ('College','college'),
     23    )
     24
    2525course_levels = SimpleWAeUPVocabulary(
    2626              ('100 (Year 1)',100),
     
    3333              ('800 (Year 8)',800),
    3434              )
    35              
     35
    3636semester = SimpleWAeUPVocabulary(
    37             ('N/A', 0), 
     37            ('N/A', 0),
    3838            ('First Semester', 1),
    39             ('Second Semester', 2), 
     39            ('Second Semester', 2),
    4040            ('Combined', 3)
    41             )     
    42            
     41            )
     42
    4343application_category = SimpleWAeUPVocabulary(
    4444            ('--',''),
     
    4848            ('Postgraduate','pg'),
    4949            )
    50            
     50
    5151study_mode = SimpleWAeUPVocabulary(
    5252            ('UME Full Time','ume_ft'),
     
    5858            ('Postgraduate Full Time','pg_ft'),
    5959            ('Postgraduate Part Time','pg_pt'),
    60             )       
    61            
     60            )
     61
    6262
    6363class CourseSource(BasicSourceFactory):
     
    7171    def getToken(self, value):
    7272        return value.code
    73        
     73
    7474    def getTitle(self, value):
    7575        return "%s - %s" % (value.code, value.title[:64])
    76        
    77        
    78        
     76
     77
     78
    7979class FutureYearsSource(BasicSourceFactory):
    80     """
    81     """
    8280    def getValues(self):
    8381        cy = datetime.datetime.now().year
    84         return [x for x in range(cy-2,cy+5)] 
     82        return [x for x in range(cy-2,cy+5)]
    8583
    8684    def getToken(self, value):
     
    8886
    8987    def getTitle(self, value):
    90       return str(value)     
    91        
    92                                                              
     88      return str(value)
Note: See TracChangeset for help on using the changeset viewer.