Changeset 7702 for main/waeup.sirp/trunk/src/waeup/sirp/browser/pages.py
- Timestamp:
- 25 Feb 2012, 10:21:54 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/browser/pages.py
r7700 r7702 292 292 @property 293 293 def frontpage(self): 294 return self.context['configuration'].frontpage_html 294 portal_language = getUtility(ISIRPUtils).PORTAL_LANGUAGE 295 lang = self.request.cookies.get('sirp.language', portal_language) 296 return self.context['configuration'].frontpage_dict.get(lang,'') 295 297 296 298 class AdministrationPage(SIRPPage): … … 623 625 _('Add session configuration'), 624 626 _('Remove selected')] 625 626 form_fields = grok.AutoFields(IConfigurationContainer) 627 form_fields['frontpage_html'].for_display = True 627 form_fields = grok.AutoFields(IConfigurationContainer).omit('frontpage_dict') 628 628 629 629 def update(self): … … 638 638 return super(ConfigurationContainerManageFormPage, self).update() 639 639 640 def frontpage(self):640 def _frontpage(self): 641 641 view = ConfigurationContainerDisplayFormPage( 642 642 self.context,self.request) … … 647 647 def save(self, **data): 648 648 self.applyData(self.context, **data) 649 self.context.frontpage_ html = self.frontpage()649 self.context.frontpage_dict = self._frontpage() 650 650 self.flash(_('Settings have been saved.')) 651 651 return
Note: See TracChangeset for help on using the changeset viewer.