Ignore:
Timestamp:
13 May 2011, 15:58:57 (14 years ago)
Author:
Henrik Bettermann
Message:

More alignments with university package.

The ApplicantsContainerAddFormPage? is broken now. It doesn't like the custom widgets. Error, e.g.:

File "/sirp/buildout-eggs/zope.formlib-4.0-py2.5.egg/zope/formlib/form.py", line 288, in setUpWidgets

if ignore_request or readonly or not widget.hasInput():

AttributeError?: 'FormattedDateDisplayWidget?' object has no attribute 'hasInput'

Location:
main/waeup.sirp/trunk/src/waeup/sirp/applicants
Files:
3 edited

Legend:

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

    r6069 r6070  
    160160    label = 'Add applicants container'
    161161    pnav = 3
     162   
    162163    form_fields = grok.AutoFields(IApplicantsContainerAdd)
    163     # hier muessen noch die widgets fuer die Datumsfelder rein
     164    form_fields['startdate'].custom_widget = FriendlyDateDisplayWidget('le')
     165    form_fields['enddate'].custom_widget = FriendlyDateDisplayWidget('le')
     166    form_fields['description'].custom_widget = ReSTWidget   
    164167   
    165168    @grok.action('Add applicants container')
     
    274277    grok.context(IApplicantsContainer)
    275278    grok.view(ApplicantsContainerPage)
    276     text = 'Manage'
     279    text = 'Manage applicants container'
    277280
    278281
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/container.py

    r6069 r6070  
    3636    #grok.provides(IApplicantsContainer)
    3737
    38     title = u'Simple applicant container'
     38    title = u'Simple applicants container'
    3939    description = u'Simple container for regular applicants'
    4040    startdate = None
     
    8080    """
    8181    grok.implements(IApplicantsContainerProvider)
    82     grok.name('waeup.sirp.applicant.ApplicantsContainer')
     82    grok.name('waeup.sirp.applicants.ApplicantsContainer')
    8383
    8484    factory = ApplicantsContainer
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/interfaces.py

    r6069 r6070  
    127127   
    128128    provider = schema.Choice(
    129         title = u'Type of applicants stored here.',
     129        title = u'Applicants container type',
    130130        required = True,
    131131        default = None,
     
    134134   
    135135    title = schema.TextLine(
    136         title = u'Title of the type of applicants stored here.',
     136        title = u'Title of the type of applicants stored here',
    137137        required = True,
    138138        default = u'Untitled',
     
    142142        title = u'Human readable description in reST format',
    143143        required = False,
    144         default = u'Not set.'
     144        default = u'No description yet.'
    145145        )
    146146
Note: See TracChangeset for help on using the changeset viewer.