- Timestamp:
- 5 May 2012, 05:00:39 (13 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/browser/pages.py
r8346 r8361 62 62 from waeup.kofa.university.vocabularies import course_levels 63 63 from waeup.kofa.authentication import LocalRoleSetEvent 64 from waeup.kofa.widgets.restwidget import ReSTDisplayWidget 64 #from waeup.kofa.widgets.restwidget import ReSTDisplayWidget 65 from waeup.kofa.widgets.htmlwidget import HTMLDisplayWidget 65 66 from waeup.kofa.authentication import get_principal_role_manager 66 67 from waeup.kofa.utils.helpers import get_user_account … … 623 624 label = _(u'View portal configuration') 624 625 form_fields = grok.AutoFields(IConfigurationContainer) 625 form_fields['frontpage'].custom_widget = ReSTDisplayWidget626 form_fields['frontpage'].custom_widget = HTMLDisplayWidget 626 627 627 628 class ConfigurationContainerManageFormPage(KofaEditFormPage): -
main/waeup.kofa/trunk/src/waeup/kofa/interfaces.py
r8346 r8361 50 50 VALIDATED = 'courses validated' 51 51 52 default_frontpage = u'' + codecs.open(os.path.join( 53 os.path.dirname(__file__), 'frontpage.rst'), 52 #default_rest_frontpage = u'' + codecs.open(os.path.join( 53 # os.path.dirname(__file__), 'frontpage.rst'), 54 # encoding='utf-8', mode='rb').read() 55 56 default_html_frontpage = u'' + codecs.open(os.path.join( 57 os.path.dirname(__file__), 'frontpage.html'), 54 58 encoding='utf-8', mode='rb').read() 55 59 … … 494 498 495 499 frontpage = schema.Text( 496 title = _(u'Content in reSTformat'),500 title = _(u'Content in HTML format'), 497 501 required = False, 498 default = default_ frontpage,502 default = default_html_frontpage, 499 503 ) 500 504
Note: See TracChangeset for help on using the changeset viewer.