Ignore:
Timestamp:
30 Jan 2012, 10:17:13 (13 years ago)
Author:
Henrik Bettermann
Message:

We do no longer need special interfaces for student access (IStudentPersonalEdit, IStudentClearanceEdit). Data access can be controlled by pages.

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

Legend:

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

    r7520 r7538  
    5252    IStudentsContainer, IStudent, IStudentClearance,
    5353    IStudentPersonal, IStudentBase, IStudentStudyCourse,
    54     IStudentAccommodation, IStudentClearanceEdit, IStudentStudyLevel,
     54    IStudentAccommodation, IStudentStudyLevel,
    5555    ICourseTicket, ICourseTicketAdd, IStudentPaymentsContainer,
    5656    IStudentOnlinePayment, IBedTicket, IStudentsUtils, IStudentChangePassword
     
    642642        return '%s: Personal Data' % self.context.display_fullname
    643643
    644 class StudentPersonalManageActionButton(ManageActionButton):
     644class StudentPersonalEditActionButton(ManageActionButton):
    645645    grok.order(1)
    646646    grok.context(IStudent)
    647647    grok.view(StudentPersonalDisplayFormPage)
    648     grok.require('waeup.manageStudent')
    649     text = 'Manage'
     648    grok.require('waeup.viewStudent')
     649    text = 'Edit'
    650650    target = 'edit_personal'
    651651
     
    18551855    grok.require('waeup.handleStudent')
    18561856    form_fields = grok.AutoFields(
    1857         IStudentClearanceEdit).omit('clearance_locked')
     1857        IStudentClearance).omit('clearance_locked')
    18581858    label = 'Edit clearance data'
    18591859    form_fields['date_of_birth'].custom_widget = FriendlyDateWidget('le-year')
  • main/waeup.sirp/trunk/src/waeup/sirp/students/browser_templates/studylevelpage.pt

    r7464 r7538  
    6161
    6262<div tal:condition="python: not len(context.keys())">
    63 There no levels registered yet.
     63There no tickets added yet.
    6464</div>
  • main/waeup.sirp/trunk/src/waeup/sirp/students/interfaces.py

    r7532 r7538  
    441441    'p_item'].order
    442442
    443 # Interfaces for students only
    444 
    445 class IStudentClearanceEdit(IStudentClearance):
    446     """Interface needed for restricted editing of student clearance data.
    447 
    448     """
    449 
    450 class IStudentPersonalEdit(IStudentPersonal):
    451     """Interface needed for restricted editing of student personal data.
    452 
    453     """
    454 
    455443class IStudentChangePassword(ISIRPObject):
    456444    """Interface needed for change pasword page.
  • main/waeup.sirp/trunk/src/waeup/sirp/students/student.py

    r7527 r7538  
    3131from waeup.sirp.image import SIRPImageFile
    3232from waeup.sirp.imagestorage import DefaultFileStoreHandler
    33 from waeup.sirp.students.interfaces import (
    34     IStudent, IStudentNavigation, IStudentClearanceEdit,
    35     IStudentPersonalEdit)
     33from waeup.sirp.students.interfaces import IStudent, IStudentNavigation
    3634from waeup.sirp.students.studycourse import StudentStudyCourse
    3735from waeup.sirp.students.payments import StudentPaymentsContainer
     
    4442    owned by students.
    4543    """
    46     grok.implements(IStudent, IStudentNavigation,
    47         IStudentPersonalEdit, IStudentClearanceEdit)
     44    grok.implements(IStudent, IStudentNavigation)
    4845    grok.provides(IStudent)
    4946
Note: See TracChangeset for help on using the changeset viewer.