Ignore:
Timestamp:
18 Dec 2011, 18:16:08 (13 years ago)
Author:
Henrik Bettermann
Message:

Use BytesDisplayWidget? for permanent address field.

File:
1 edited

Legend:

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

    r7369 r7386  
    2525from zope.event import notify
    2626from zope.catalog.interfaces import ICatalog
    27 from zope.component import queryUtility, getUtility
     27from zope.component import queryUtility, getUtility, createObject
     28from zope.formlib.textwidgets import BytesDisplayWidget
    2829#from hurry.query import Eq
    2930#from hurry.query.query import Query
    3031from hurry.workflow.interfaces import IWorkflowInfo, IWorkflowState
    31 from zope.component import createObject
    3232from waeup.sirp.accesscodes import (
    3333    invalidate_accesscode, get_access_code, create_accesscode)
     
    636636    grok.require('waeup.viewStudent')
    637637    form_fields = grok.AutoFields(IStudentPersonal)
     638    form_fields['perm_address'].custom_widget = BytesDisplayWidget
    638639    title = 'Personal Data'
    639640    pnav = 4
Note: See TracChangeset for help on using the changeset viewer.