Ignore:
Timestamp:
14 Apr 2011, 21:25:35 (14 years ago)
Author:
Henrik Bettermann
Message:

Set all code attributes readonly but ensure that code can be filled in AddFormPages?.

File:
1 edited

Legend:

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

    r5944 r5948  
    3030    """Representation of a university faculty.
    3131    """
     32    code = schema.TextLine(
     33        title = u'Code',
     34        description = u'Abbreviated code of the faculty',
     35        default = u'NA',
     36        required = True,
     37        readonly = True,
     38        )
     39
    3240    title = schema.TextLine(
    3341        title = u'Name of Faculty',
     
    4250        )
    4351   
    44     code = schema.TextLine(
    45         title = u'Code',
    46         description = u'Abbreviated code of the faculty',
    47         default = u'NA',
    48         required = True,
    49         )
    50 
    5152class IFacultyContainer(IWAeUPContainer):
    5253    """A container for faculties.
     
    6061    """Representation of a department.
    6162    """
     63    code = schema.TextLine(
     64        title = u'Code',
     65        default = u'NA',
     66        description = u'Abbreviated code of the department',
     67        required = True,
     68        readonly = True,
     69        )
     70
    6271    title = schema.TextLine(
    6372        title = u'Name of Department',
     
    6978        title = u'Title prefix',
    7079        default = u'department',
    71         required = True,
    72         )
    73    
    74     code = schema.TextLine(
    75         title = u'Code',
    76         default = u'NA',
    77         description = u'Abbreviated code of the department',
    7880        required = True,
    7981        )
     
    139141        description = u'Abbreviated code of the certificate.',
    140142        required = True,
     143        readonly = True,
    141144        )
    142145
    143146    review_state = schema.Choice(
    144         title = u'review state',
     147        title = u'Review State',
    145148        default = 'unchecked',
    146149        values = ['unchecked', 'checked']
     
    148151
    149152    title = schema.TextLine(
    150         title = u'title',
     153        title = u'Title',
    151154        required = True,
    152155        )
    153156
    154157    study_mode = schema.TextLine(
    155         title = u'study mode',
     158        title = u'Study Mode',
    156159        required = True,
    157160        )
    158161
    159162    start_level = schema.TextLine(
    160         title = u'start level',
     163        title = u'Start Level',
    161164        required = True,
    162165        )
    163166   
    164167    end_level = schema.TextLine(
    165         title = u'end level',
     168        title = u'End Level',
    166169        required = True,
    167170        )
    168171   
    169172    application_category = schema.TextLine(
    170         title = u'application category',
     173        title = u'aApplication Category',
    171174        required = False,
    172         )
    173    
    174     max_pass = schema.TextLine(
    175         title = u'maximum pass',
    176         required = False,
    177         )
    178    
     175        )   
    179176
    180177   
Note: See TracChangeset for help on using the changeset viewer.