Ignore:
Timestamp:
14 Sep 2011, 08:28:16 (13 years ago)
Author:
Henrik Bettermann
Message:

We don't need the StudentBaseEdit? page any more. Student won't be allowed to edit their base data.

The password shouldn't be a form field on the StudentBaseManageFormPage?. I still prefer a simple attribute declaration. Why do we need a schema field?

Students are not allowed to edit their name.

Location:
main/waeup.sirp/trunk/src/waeup/sirp/students
Files:
2 edited

Legend:

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

    r6756 r6764  
    6666        default = u'Nobody',
    6767        required = True,
     68        readonly = True
    6869        )
    6970
     
    9293    adm_code = Attribute('Admission checking access code')
    9394
    94     password = schema.Password(
    95         title = u'Password',
    96         required = False,
    97         )
    98 
    9995    def loggerInfo(ob_class, comment):
    10096        """Adds an INFO message to the log file
     
    205201# Interfaces for students only
    206202
    207 class IStudentBaseEdit(IStudentBase):
    208     """Interface needed for editing of student base data by students.
    209     """
    210 
    211     name = schema.TextLine(
    212         title = u'Full Name',
    213         default = u'Nobody',
    214         required = True,
    215         readonly = True,
    216         )
    217 
    218 IStudentBaseEdit['name'].order =  IStudentBase['name'].order
    219 
    220203class IStudentClearanceEdit(IStudentClearance):
    221204    """Interface needed for restricted editing of student clearance data.
  • main/waeup.sirp/trunk/src/waeup/sirp/students/student.py

    r6749 r6764  
    2424from waeup.sirp.interfaces import IObjectHistory
    2525from waeup.sirp.students.interfaces import (
    26     IStudent, IStudentNavigation, IStudentBaseEdit, IStudentClearanceEdit,
     26    IStudent, IStudentNavigation, IStudentClearanceEdit,
    2727    IStudentPersonalEdit)
    2828from waeup.sirp.utils.helpers import attrs_to_fields
     
    3434    """
    3535    grok.implements(IStudent, IStudentNavigation,
    36         IStudentBaseEdit, IStudentClearanceEdit, IStudentPersonalEdit)
     36        IStudentPersonalEdit)
    3737    grok.provides(IStudent)
    3838
Note: See TracChangeset for help on using the changeset viewer.