Changeset 7485 for main/waeup.sirp/trunk/src/waeup
- Timestamp:
- 16 Jan 2012, 10:07:19 (13 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/browser/pages.py
r7484 r7485 272 272 @property 273 273 def frontpage(self): 274 view = ConfigurationContainerDisplayFormPage( 275 self.context['configuration'],self.request) 276 view.setUpWidgets() 277 return view.widgets['frontpage']() 274 return self.context['configuration'].frontpage_html 278 275 279 276 class AdministrationPage(SIRPPage): … … 567 564 568 565 form_fields = grok.AutoFields(IConfigurationContainer) 566 form_fields['frontpage_html'].for_display = True 569 567 570 568 def update(self): … … 579 577 return super(ConfigurationContainerManageFormPage, self).update() 580 578 579 def frontpage(self): 580 view = ConfigurationContainerDisplayFormPage( 581 self.context,self.request) 582 view.setUpWidgets() 583 return view.widgets['frontpage']() 584 581 585 @action('Save', style='primary') 582 586 def save(self, **data): 583 587 self.applyData(self.context, **data) 588 self.context.frontpage_html = self.frontpage() 584 589 self.flash('Settings have been saved.') 585 590 return -
main/waeup.sirp/trunk/src/waeup/sirp/interfaces.py
r7475 r7485 404 404 ) 405 405 406 frontpage_html = schema.Text( 407 title = u'Content in HTML format', 408 required = False, 409 ) 410 406 411 accommodation_session = schema.Choice( 407 412 title = u'Accommodation Booking Session',
Note: See TracChangeset for help on using the changeset viewer.