Changeset 6083


Ignore:
Timestamp:
14 May 2011, 05:19:04 (14 years ago)
Author:
Henrik Bettermann
Message:

In the morning everything looks easier.

File:
1 edited

Legend:

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

    r6082 r6083  
    141141
    142142    form_fields = grok.AutoFields(IApplicantsContainerAdd)
    143     form_fields['startdate'].custom_widget = FriendlyDateDisplayWidget('le')
    144     form_fields['enddate'].custom_widget = FriendlyDateDisplayWidget('le')
    145     form_fields['description'].custom_widget = ReSTWidget
     143    form_fields['startdate'].custom_widget = FriendlyDateWidget('le')
     144    form_fields['enddate'].custom_widget = FriendlyDateWidget('le')
     145    #form_fields['description'].custom_widget = ReSTWidget
     146
     147    def update(self):
     148        datepicker.need() # Enable jQuery datepicker in date fields.
     149        return super(ApplicantsContainerAddFormPage, self).update()
    146150
    147151    @grok.action('Add applicants container')
     
    152156            return
    153157        # Add new applicants container...
    154         provider = getUtility(IApplicantsContainerProvider,
    155                               name=getattr(data['provider'],
    156                                    'grokcore.component.directive.name'))
     158        provider = data['provider'][1]
    157159        container = provider.factory()
    158160        self.applyData(container, **data)
Note: See TracChangeset for help on using the changeset viewer.