Changeset 7321 for main/waeup.sirp/trunk/src/waeup/sirp/browser/layout.py
- Timestamp:
- 10 Dec 2011, 06:15:17 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/browser/layout.py
r7274 r7321 29 29 from zope.interface import Interface 30 30 from zope.site.hooks import getSite 31 from waeup.sirp.interfaces import I WAeUPObject, IUserAccount31 from waeup.sirp.interfaces import ISIRPObject, IUserAccount 32 32 from waeup.sirp.browser.interfaces import ITheme 33 from waeup.sirp.browser.theming import get_all_themes, WAeUPThemeGray133 from waeup.sirp.browser.theming import get_all_themes, SIRPThemeGray1 34 34 from waeup.sirp.students.interfaces import IStudentNavigation 35 35 from waeup.sirp.applicants.interfaces import IApplicant … … 101 101 return True 102 102 103 class WAeUPLayout(Layout, UtilityView):103 class SIRPLayout(Layout, UtilityView): 104 104 """A megrok.layout.Layout with additional methods. 105 105 """ 106 106 grok.baseclass() 107 107 108 class WAeUPForm(Form, UtilityView):108 class SIRPForm(Form, UtilityView): 109 109 """A megrok.layout.Form with additional methods. 110 110 """ … … 112 112 113 113 def setUpWidgets(self,ignore_request=False): 114 super( WAeUPForm,self).setUpWidgets(ignore_request)114 super(SIRPForm,self).setUpWidgets(ignore_request) 115 115 if self.widgets.get('subject'): 116 116 self.widgets['subject'].displayWidth = 45 … … 120 120 self.widgets['body'].width = 35 121 121 122 class WAeUPPage(Page):122 class SIRPPage(Page): 123 123 """A megrok.layout page with additional methods. 124 124 """ 125 125 grok.baseclass() 126 126 127 class WAeUPDisplayFormPage(DisplayForm, UtilityView):127 class SIRPDisplayFormPage(DisplayForm, UtilityView): 128 128 """A megrok.layout.DisplayForm with additional methods. 129 129 """ … … 131 131 template = default_waeup_display_template 132 132 133 class WAeUPEditFormPage(EditForm, UtilityView):133 class SIRPEditFormPage(EditForm, UtilityView): 134 134 """A megrok.layout.EditForm with additional methods. 135 135 """ … … 138 138 139 139 def setUpWidgets(self,ignore_request=False): 140 super( WAeUPEditFormPage,self).setUpWidgets(ignore_request)140 super(SIRPEditFormPage,self).setUpWidgets(ignore_request) 141 141 if self.widgets.get('title'): 142 142 self.widgets['title'].displayWidth = 80 … … 148 148 self.widgets['notice'].height = 3 149 149 150 class WAeUPAddFormPage(AddForm, UtilityView):150 class SIRPAddFormPage(AddForm, UtilityView): 151 151 """A megrok.layout.AddForm with additional methods. 152 152 """ … … 154 154 template = default_waeup_edit_template 155 155 156 class SiteLayout( WAeUPLayout):156 class SiteLayout(SIRPLayout): 157 157 """ The general site layout. 158 158 """ 159 grok.context(I WAeUPObject)159 grok.context(ISIRPObject) 160 160 161 161 #: An instance of the default theme to use for the site layout 162 default_theme = WAeUPThemeGray1()162 default_theme = SIRPThemeGray1() 163 163 stafftemp = grok.PageTemplateFile('templates/staffsitelayout.pt') 164 164 studenttemp = grok.PageTemplateFile('templates/studentsitelayout.pt')
Note: See TracChangeset for help on using the changeset viewer.