Changeset 7485 for main/waeup.sirp/trunk/src/waeup/sirp/browser
- Timestamp:
- 16 Jan 2012, 10:07:19 (13 years ago)
- File:
-
- 1 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
Note: See TracChangeset for help on using the changeset viewer.