Changeset 6065 for main/waeup.sirp/trunk/src/waeup/sirp/browser/pages.py
- Timestamp:
- 12 May 2011, 20:56:14 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/browser/pages.py
r6028 r6065 41 41 from waeup.sirp.university.catalog import search 42 42 from waeup.sirp.university.vocabularies import course_levels 43 from waeup.sirp.widgets.restwidget import ReSTWidget 43 44 44 45 grok.context(IWAeUPObject) … … 110 111 # 111 112 112 class UniversityPage(WAeUP Page):113 class UniversityPage(WAeUPDisplayFormPage): 113 114 """ The main university page. 114 115 """ … … 116 117 grok.name('index') 117 118 grok.context(IUniversity) 118 title = u'Welcome to SIRP'119 119 pnav = 0 120 121 form_fields = grok.AutoFields(IUniversity) 122 form_fields['frontpage'].custom_widget = ReSTWidget 123 124 @property 125 def title(self): 126 return "Welcome" 127 128 @property 129 def label(self): 130 return self.context.title 120 131 121 132 class Manage(WAeUPEditFormPage):
Note: See TracChangeset for help on using the changeset viewer.