Changeset 13066 for main/waeup.ikoba/trunk/src/waeup/ikoba/browser
- Timestamp:
- 16 Jun 2015, 14:48:55 (10 years ago)
- Location:
- main/waeup.ikoba/trunk/src/waeup/ikoba/browser
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.ikoba/trunk/src/waeup/ikoba/browser/__init__.py
r11949 r13066 1 1 import os 2 3 #from waeup.ikoba.browser.layout import (4 # IkobaPage, IkobaForm, IkobaLayout, IkobaDisplayFormPage, IkobaEditFormPage,5 # IkobaAddFormPage, NullValidator)6 #from waeup.ikoba.browser.pages import ContactAdminForm7 2 8 3 IMAGE_PATH = os.path.join( -
main/waeup.ikoba/trunk/src/waeup/ikoba/browser/layout.py
r12804 r13066 166 166 grok.baseclass() 167 167 168 class IkobaForm(UtilityView,Form): 168 class IkobaPage(UtilityView,Page): 169 """A megrok.layout page with additional methods. 170 """ 171 grok.baseclass() 172 173 class IkobaFormPage(UtilityView,Form): 169 174 """A megrok.layout.Form with additional methods. 170 175 """ … … 172 177 173 178 def setUpWidgets(self,ignore_request=False): 174 super(IkobaForm ,self).setUpWidgets(ignore_request)179 super(IkobaFormPage,self).setUpWidgets(ignore_request) 175 180 # Width parameters will be overridden by Bootstrap 176 181 # so we have to set the css class 177 182 if self.widgets.get('body'): 178 183 self.widgets['body'].height = 10 179 180 class IkobaPage(UtilityView,Page):181 """A megrok.layout page with additional methods.182 """183 grok.baseclass()184 184 185 185 class IkobaDisplayFormPage(UtilityView,DisplayForm): -
main/waeup.ikoba/trunk/src/waeup/ikoba/browser/pages.py
r12995 r13066 44 44 from waeup.ikoba.utils.helpers import html2dict 45 45 from waeup.ikoba.browser.layout import ( 46 IkobaPage, IkobaForm , IkobaEditFormPage, IkobaAddFormPage,46 IkobaPage, IkobaFormPage, IkobaEditFormPage, IkobaAddFormPage, 47 47 IkobaDisplayFormPage, NullValidator) 48 48 from waeup.ikoba.browser.interfaces import ( … … 361 361 # 362 362 363 class ContactAdminForm(IkobaForm ):363 class ContactAdminForm(IkobaFormPage): 364 364 grok.name('contactadmin') 365 365 #grok.context(ICompany) … … 1515 1515 return result 1516 1516 1517 class ChangePasswordRequestPage(IkobaForm ):1517 class ChangePasswordRequestPage(IkobaFormPage): 1518 1518 """Captcha'd page for all kind of users to request a password change. 1519 1519 """
Note: See TracChangeset for help on using the changeset viewer.