Ignore:
Timestamp:
12 Mar 2012, 08:04:03 (13 years ago)
Author:
Henrik Bettermann
Message:

We don't need methods to fetch dictionaries.

Update interfaces.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/utils/utils.py

    r7836 r7841  
    5757        }
    5858
    59     def getExamSubjectsDict(self):
    60         """Provide a dictionary of exam subjects.
    61         """
    62         return {
    63             'accounts': 'Accounts',
    64             'add_general_science': 'Add General Science',
    65             'add_maths': 'Add Maths',
    66             'agricultural_science': 'Agricultural Science',
    67             'applied_electricity': 'Applied Electricity',
    68             'arabi': 'Arabic',
    69             'arithmetics': 'Arithmetics',
    70             'art': 'Art',
    71             'auto_mechanics': 'Auto Mechanics',
    72             'basic_electricity': 'Basic Electricity',
    73             'bible_knowledge': 'Bible Knowledge',
    74             'biology': 'Biology',
    75             'biology_alt_syl': 'Biology (Alt.Syl)',
    76             'book_keeping': 'Book Keeping',
    77             'building_construction': 'Building Construction',
    78             'business_management': 'Business Management',
    79             'business_construction_management': 'Business/Construction Management (Adv)',
    80             'chemistry': 'Chemistry',
    81             'chemistry_alt_syl': 'Chemistry (Alt.Syl)',
    82             'christian_religious_studies': 'Christian Religious Studies',
    83             'clerical_office_duties': 'Clerical Office Duties',
    84             'clothing_and_textiles': 'Clothing and Textiles',
    85             'commerce': 'Commerce',
    86             'economics': 'Economics',
    87             'education': 'Education',
    88             'efik': 'Efik',
    89             'electronics': 'Electronics',
    90             'elementary_surveying': 'Elementary Surveying',
    91             'english_language': 'English Language',
    92             'engineering_science': 'Engineering Science',
    93             'financial_accounting': 'Financial Accounting',
    94             'food_and_nutrition': 'Food and Nutrition',
    95             'french': 'French',
    96             'further_mathematics': 'Further Mathematics',
    97             'general_science': 'General Science',
    98             'geography': 'Geography',
    99             'german': 'German',
    100             'government': 'Government',
    101             'hausa': 'Hausa',
    102             'hausa_literature': 'Hausa Literature',
    103             'health_science': 'Health Science',
    104             'history': 'History',
    105             'home_management': 'Home Management',
    106             'industrial_electrical_installation': 'Industrial Elect Installation (Adv)',
    107             'intergrated_science': 'Intergrated Science',
    108             'islamic_studies': 'Islamic Studies',
    109             'literature_in_english': 'Literature in English',
    110             'literature_in_nigerian_languages': 'Literature in Nigerian Languages',
    111             'igbo': 'Igbo',
    112             'igbo_literature': 'Igbo Literature',
    113             'yoruba': 'Yoruba',
    114             'yoruba_literature': 'Yoruba Literature',
    115             'management_in_living': 'Management in Living',
    116             'mathematics': 'Mathematics',
    117             'metalwork': 'Metalwork',
    118             'music': 'Music',
    119             'nigerian_language': 'Nigerian Language',
    120             'office_practice': 'Office Practice',
    121             'physical_education': 'Physical Education',
    122             'physical_health_education': 'Physical and Health Education',
    123             'physics': 'Physics',
    124             'physics_alt_syl': 'Physics (Alt.Syl)',
    125             'principles_of_cost_accounting': 'Principles of Cost Accounting',
    126             'rural_science': 'Rural Science',
    127             'science': 'Science',
    128             'secretarial_duties': 'Secretarial Duties',
    129             'shorthand': 'Shorthand',
    130             'sierra_leone_studies': 'Sierra Leone Studies',
    131             'sierra_leone_languages': 'Sierra Leone Languages',
    132             'social_studies': 'Social Studies',
    133             'statistics': 'Statistics',
    134             'teaching_practice': 'Teaching Practice',
    135             'technical_drawing': 'Technical Drawing',
    136             'typewriting': 'Typewriting',
    137             'visual_art': 'Visual Art',
    138             'woodwork': 'Woodwork',
    139             'winding_elect_machines': 'Winding of Elect Machines and Elect Eng Sc'
    140             }
    141 
    142     def getExamGradesDict(self):
    143         """Provide a dictionary of exam grades.
    144         """
    145         return {
    146             'A1': 'Excellent (A1)',
    147             'A2': 'Very Good (A2)',
    148             'A3': 'Good (A3)',
    149             'B2': 'Very Good (B2)',
    150             'B3': 'Good (B3)',
    151             'C4': 'Credit (C4)',
    152             'C5': 'Credit (C5)',
    153             'C6': 'Credit (C6)',
    154             'D7': 'Pass (D7)',
    155             'E8': 'Pass (E8)',
    156             'F9': 'Fail (F9)',
    157             'Aa': 'A (a)',
    158             'Bb': 'B (b)',
    159             'Cc': 'C (c)',
    160             'Dd': 'D (d)',
    161             'Ee': 'E (e)',
    162             'Ff': 'F (f)',
    163             'Gg': 'G (g)'
    164             }
    165 
    166     def getInstTypeDict(self):
    167         """Provide a dictionary of study modes.
    168         """
    169         return {
     59    EXAM_SUBJECTS_DICT = {
     60        'accounts': 'Accounts',
     61        'add_general_science': 'Add General Science',
     62        'add_maths': 'Add Maths',
     63        'agricultural_science': 'Agricultural Science',
     64        'applied_electricity': 'Applied Electricity',
     65        'arabi': 'Arabic',
     66        'arithmetics': 'Arithmetics',
     67        'art': 'Art',
     68        'auto_mechanics': 'Auto Mechanics',
     69        'basic_electricity': 'Basic Electricity',
     70        'bible_knowledge': 'Bible Knowledge',
     71        'biology': 'Biology',
     72        'biology_alt_syl': 'Biology (Alt.Syl)',
     73        'book_keeping': 'Book Keeping',
     74        'building_construction': 'Building Construction',
     75        'business_management': 'Business Management',
     76        'business_construction_management': 'Business/Construction Management (Adv)',
     77        'chemistry': 'Chemistry',
     78        'chemistry_alt_syl': 'Chemistry (Alt.Syl)',
     79        'christian_religious_studies': 'Christian Religious Studies',
     80        'clerical_office_duties': 'Clerical Office Duties',
     81        'clothing_and_textiles': 'Clothing and Textiles',
     82        'commerce': 'Commerce',
     83        'economics': 'Economics',
     84        'education': 'Education',
     85        'efik': 'Efik',
     86        'electronics': 'Electronics',
     87        'elementary_surveying': 'Elementary Surveying',
     88        'english_language': 'English Language',
     89        'engineering_science': 'Engineering Science',
     90        'financial_accounting': 'Financial Accounting',
     91        'food_and_nutrition': 'Food and Nutrition',
     92        'french': 'French',
     93        'further_mathematics': 'Further Mathematics',
     94        'general_science': 'General Science',
     95        'geography': 'Geography',
     96        'german': 'German',
     97        'government': 'Government',
     98        'hausa': 'Hausa',
     99        'hausa_literature': 'Hausa Literature',
     100        'health_science': 'Health Science',
     101        'history': 'History',
     102        'home_management': 'Home Management',
     103        'industrial_electrical_installation': 'Industrial Elect Installation (Adv)',
     104        'intergrated_science': 'Intergrated Science',
     105        'islamic_studies': 'Islamic Studies',
     106        'literature_in_english': 'Literature in English',
     107        'literature_in_nigerian_languages': 'Literature in Nigerian Languages',
     108        'igbo': 'Igbo',
     109        'igbo_literature': 'Igbo Literature',
     110        'yoruba': 'Yoruba',
     111        'yoruba_literature': 'Yoruba Literature',
     112        'management_in_living': 'Management in Living',
     113        'mathematics': 'Mathematics',
     114        'metalwork': 'Metalwork',
     115        'music': 'Music',
     116        'nigerian_language': 'Nigerian Language',
     117        'office_practice': 'Office Practice',
     118        'physical_education': 'Physical Education',
     119        'physical_health_education': 'Physical and Health Education',
     120        'physics': 'Physics',
     121        'physics_alt_syl': 'Physics (Alt.Syl)',
     122        'principles_of_cost_accounting': 'Principles of Cost Accounting',
     123        'rural_science': 'Rural Science',
     124        'science': 'Science',
     125        'secretarial_duties': 'Secretarial Duties',
     126        'shorthand': 'Shorthand',
     127        'sierra_leone_studies': 'Sierra Leone Studies',
     128        'sierra_leone_languages': 'Sierra Leone Languages',
     129        'social_studies': 'Social Studies',
     130        'statistics': 'Statistics',
     131        'teaching_practice': 'Teaching Practice',
     132        'technical_drawing': 'Technical Drawing',
     133        'typewriting': 'Typewriting',
     134        'visual_art': 'Visual Art',
     135        'woodwork': 'Woodwork',
     136        'winding_elect_machines': 'Winding of Elect Machines and Elect Eng Sc'
     137        }
     138
     139    EXAM_GRADES_DICT = {
     140        'A1': 'Excellent (A1)',
     141        'A2': 'Very Good (A2)',
     142        'A3': 'Good (A3)',
     143        'B2': 'Very Good (B2)',
     144        'B3': 'Good (B3)',
     145        'C4': 'Credit (C4)',
     146        'C5': 'Credit (C5)',
     147        'C6': 'Credit (C6)',
     148        'D7': 'Pass (D7)',
     149        'E8': 'Pass (E8)',
     150        'F9': 'Fail (F9)',
     151        'Aa': 'A (a)',
     152        'Bb': 'B (b)',
     153        'Cc': 'C (c)',
     154        'Dd': 'D (d)',
     155        'Ee': 'E (e)',
     156        'Ff': 'F (f)',
     157        'Gg': 'G (g)'
     158        }
     159
     160    INST_TYPES_DICT = {
    170161        'faculty': 'Faculty of',
    171162        'department': 'Department of',
     
    177168        }
    178169
    179     def getStudyModesDict(self):
    180         """Provide a dictionary of study modes.
    181         """
    182         return {
     170    STUDY_MODES_DICT = {
    183171        'rmd_ft': 'Remedial with deficiencies',
    184172        'dp_pt': 'Diploma Part Time',
     
    200188        }
    201189
    202     def getAppCatDict(self):
    203         """Provide a dictionary of study modes.
    204         """
    205         return {
     190    APP_CATS_DICT = {
    206191        'basic': 'PUME, PDE, PCE, PRENCE',
    207192        'no': 'no application',
     
    211196        }
    212197
    213     def getSemesterDict(self):
    214         """Provide a dictionary of semester or trimester types.
    215         """
    216         return {
     198    SEMESTER_DICT = {
    217199        1: 'First Semester',
    218200        2: 'Second Semester',
Note: See TracChangeset for help on using the changeset viewer.