Ignore:
Timestamp:
16 Jun 2015, 14:48:55 (10 years ago)
Author:
Henrik Bettermann
Message:

Rename customer views which are not layout-aware and thus not pages.

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  
    11import 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 ContactAdminForm
    72
    83IMAGE_PATH = os.path.join(
  • main/waeup.ikoba/trunk/src/waeup/ikoba/browser/layout.py

    r12804 r13066  
    166166    grok.baseclass()
    167167
    168 class IkobaForm(UtilityView,Form):
     168class IkobaPage(UtilityView,Page):
     169    """A megrok.layout page with additional methods.
     170    """
     171    grok.baseclass()
     172
     173class IkobaFormPage(UtilityView,Form):
    169174    """A megrok.layout.Form with additional methods.
    170175    """
     
    172177
    173178    def setUpWidgets(self,ignore_request=False):
    174         super(IkobaForm,self).setUpWidgets(ignore_request)
     179        super(IkobaFormPage,self).setUpWidgets(ignore_request)
    175180        # Width parameters will be overridden by Bootstrap
    176181        # so we have to set the css class
    177182        if self.widgets.get('body'):
    178183            self.widgets['body'].height = 10
    179 
    180 class IkobaPage(UtilityView,Page):
    181     """A megrok.layout page with additional methods.
    182     """
    183     grok.baseclass()
    184184
    185185class IkobaDisplayFormPage(UtilityView,DisplayForm):
  • main/waeup.ikoba/trunk/src/waeup/ikoba/browser/pages.py

    r12995 r13066  
    4444from waeup.ikoba.utils.helpers import html2dict
    4545from waeup.ikoba.browser.layout import (
    46     IkobaPage, IkobaForm, IkobaEditFormPage, IkobaAddFormPage,
     46    IkobaPage, IkobaFormPage, IkobaEditFormPage, IkobaAddFormPage,
    4747    IkobaDisplayFormPage, NullValidator)
    4848from waeup.ikoba.browser.interfaces import (
     
    361361#
    362362
    363 class ContactAdminForm(IkobaForm):
     363class ContactAdminForm(IkobaFormPage):
    364364    grok.name('contactadmin')
    365365    #grok.context(ICompany)
     
    15151515        return result
    15161516
    1517 class ChangePasswordRequestPage(IkobaForm):
     1517class ChangePasswordRequestPage(IkobaFormPage):
    15181518    """Captcha'd page for all kind of users to request a password change.
    15191519    """
Note: See TracChangeset for help on using the changeset viewer.