Changeset 8077


Ignore:
Timestamp:
9 Apr 2012, 11:07:20 (13 years ago)
Author:
Henrik Bettermann
Message:

See previous revision.

Location:
main/waeup.custom/trunk/src/waeup/custom
Files:
3 added
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.custom/trunk/src/waeup/custom/applicants/browser.py

    r8054 r8077  
    2222    FriendlyDateWidget, FriendlyDateDisplayWidget,
    2323    FriendlyDatetimeDisplayWidget)
    24 from waeup.kofa.widgets.phonewidget import PhoneWidget
     24from waeup.custom.widgets.phonewidget import PhoneWidget
    2525from waeup.kofa.applicants.browser import (ApplicantDisplayFormPage,
    2626    OnlinePaymentCallbackPage, ExportPDFPage,
     
    9393        form_fields['student_id'].for_display = True
    9494        form_fields['applicant_id'].for_display = True
    95         form_fields['phone'].custom_widget = PhoneWidget
    9695        return form_fields
    9796
  • main/waeup.custom/trunk/src/waeup/custom/students/browser.py

    r7998 r8077  
    2525    StudentClearanceManageFormPage, StudentClearanceEditFormPage,
    2626    StudentClearanceDisplayFormPage, OnlinePaymentCallbackPage,
    27     ExportPDFClearanceSlipPage)
     27    ExportPDFClearanceSlipPage, StudentBaseManageFormPage,
     28    StudentBaseEditFormPage)
    2829from waeup.kofa.students.viewlets import RequestCallbackActionButton
    2930from waeup.custom.students.interfaces import (
    30     IStudent, IStudentPersonal,
     31    IStudentBase, IStudent, IStudentPersonal,
    3132    IUGStudentClearance,IPGStudentClearance,
    3233    )
    3334from waeup.custom.interfaces import MessageFactory as _
     35from waeup.custom.widgets.phonewidget import PhoneWidget
    3436
    3537class RequestCallbackActionButton(RequestCallbackActionButton):
     
    4547    def update(self):
    4648        return
     49
     50class StudentBaseManageFormPage(StudentBaseManageFormPage):
     51    """ View to manage student base data
     52    """
     53    form_fields = grok.AutoFields(IStudentBase).omit('student_id')
     54    form_fields['phone'].custom_widget = PhoneWidget
     55
     56class StudentBaseEditFormPage(StudentBaseEditFormPage):
     57    """ View to edit student base data
     58    """
     59    form_fields = grok.AutoFields(IStudentBase).select(
     60        'email', 'phone')
     61    form_fields['phone'].custom_widget = PhoneWidget
    4762
    4863class StudentPersonalDisplayFormPage(StudentPersonalDisplayFormPage):
Note: See TracChangeset for help on using the changeset viewer.