Changeset 8946


Ignore:
Timestamp:
8 Jul 2012, 17:35:45 (12 years ago)
Author:
Henrik Bettermann
Message:

Add nysc_location. We need this field only for imported data from SRP. This field shouldn't be filled by students in Kofa.

Location:
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/students
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/students/browser.py

    r8904 r8946  
    133133        cm = getattr(self.context,'current_mode', None)
    134134        if cm is not None and cm.startswith('pg'):
    135             form_fields = grok.AutoFields(INigeriaPGStudentClearance).omit('clearance_locked')
    136         else:
    137             form_fields = grok.AutoFields(INigeriaUGStudentClearance).omit('clearance_locked')
     135            form_fields = grok.AutoFields(INigeriaPGStudentClearance).omit(
     136            'clearance_locked', 'nysc_location')
     137        else:
     138            form_fields = grok.AutoFields(INigeriaUGStudentClearance).omit(
     139            'clearance_locked')
    138140        return form_fields
    139141
  • main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/students/interfaces.py

    r8923 r8946  
    305305        )
    306306
     307    nysc_location = schema.TextLine(
     308        title = _(u'Nysc Location'),
     309        required = False,
     310        )
     311
    307312    nysc_lga = schema.Choice(
    308313        source = LGASource(),
    309         title = _(u'Nysc Location'),
     314        title = _(u'Nysc LGA'),
    310315        required = False,
    311316        )
Note: See TracChangeset for help on using the changeset viewer.