Changeset 7274
- Timestamp:
- 5 Dec 2011, 07:19:26 (13 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp/browser
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/browser/__init__.py
r7229 r7274 2 2 3 3 from waeup.sirp.browser.layout import ( 4 WAeUPPage, WAeUP Layout, WAeUPDisplayFormPage, WAeUPEditFormPage,4 WAeUPPage, WAeUPForm, WAeUPLayout, WAeUPDisplayFormPage, WAeUPEditFormPage, 5 5 WAeUPAddFormPage, NullValidator) 6 6 from waeup.sirp.browser.pages import ContactAdminForm -
main/waeup.sirp/trunk/src/waeup/sirp/browser/layout.py
r7254 r7274 23 23 import grokcore.view 24 24 from hurry.resource import mode 25 from megrok.layout import Page, Layout, EditForm, DisplayForm, AddForm25 from megrok.layout import Page, Layout, Form, EditForm, DisplayForm, AddForm 26 26 from z3c.flashmessage.interfaces import IMessageSource, IMessageReceiver 27 27 from zope.component import getUtility, queryUtility, ComponentLookupError … … 106 106 grok.baseclass() 107 107 108 class WAeUPForm(Form, UtilityView): 109 """A megrok.layout.Form with additional methods. 110 """ 111 grok.baseclass() 112 113 def setUpWidgets(self,ignore_request=False): 114 super(WAeUPForm,self).setUpWidgets(ignore_request) 115 if self.widgets.get('subject'): 116 self.widgets['subject'].displayWidth = 45 117 if self.widgets.get('body'): 118 self.widgets['body'].height = 10 119 if self.widgets.get('body'): 120 self.widgets['body'].width = 35 121 108 122 class WAeUPPage(Page): 109 123 """A megrok.layout page with additional methods. -
main/waeup.sirp/trunk/src/waeup/sirp/browser/pages.py
r7240 r7274 37 37 from zope.event import notify 38 38 from zope.session.interfaces import ISession 39 from megrok.layout import Form40 39 from waeup.sirp.browser import ( 41 WAeUPPage, WAeUP EditFormPage, WAeUPAddFormPage,40 WAeUPPage, WAeUPForm, WAeUPEditFormPage, WAeUPAddFormPage, 42 41 WAeUPDisplayFormPage, NullValidator) 43 42 from waeup.sirp.browser.interfaces import ( … … 193 192 # 194 193 195 class ContactAdminForm( Form):194 class ContactAdminForm(WAeUPForm): 196 195 grok.name('contactadmin') 197 196 #grok.context(IUniversity)
Note: See TracChangeset for help on using the changeset viewer.