- Timestamp:
- 9 May 2011, 10:33:52 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/browser/layout.py
r6028 r6030 1 1 """Basic layout components. 2 2 """ 3 import os 3 4 import grok 5 import grokcore.view 4 6 from hurry.resource import mode 5 7 from megrok.layout import Page, Layout, EditForm, DisplayForm, AddForm … … 18 20 19 21 grok.templatedir('templates') 22 default_waeup_display_template = grokcore.view.PageTemplateFile( 23 os.path.join('templates', 'default_waeup_display_form.pt')) 24 default_waeup_display_template.__grok_name__ = 'default_waeup_display_form' 25 26 default_waeup_edit_template = grokcore.view.PageTemplateFile( 27 os.path.join('templates', 'default_waeup_edit_form.pt')) 28 default_waeup_edit_template.__grok_name__ = 'default_waeup_edit_form' 29 20 30 21 31 def NullValidator(*args, **kw): … … 84 94 """ 85 95 grok.baseclass() 86 grok.template('default_waeup_display_form')96 template = default_waeup_display_template 87 97 88 98 class WAeUPEditFormPage(EditForm, UtilityView): … … 90 100 """ 91 101 grok.baseclass() 92 grok.template('default_waeup_edit_form')102 template = default_waeup_edit_template 93 103 94 104 def setUpWidgets(self,ignore_request=False):
Note: See TracChangeset for help on using the changeset viewer.