Changeset 6083
- Timestamp:
- 14 May 2011, 05:19:04 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser.py
r6082 r6083 141 141 142 142 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() 146 150 147 151 @grok.action('Add applicants container') … … 152 156 return 153 157 # Add new applicants container... 154 provider = getUtility(IApplicantsContainerProvider, 155 name=getattr(data['provider'], 156 'grokcore.component.directive.name')) 158 provider = data['provider'][1] 157 159 container = provider.factory() 158 160 self.applyData(container, **data)
Note: See TracChangeset for help on using the changeset viewer.