Ignore:
Timestamp:
8 Mar 2012, 22:28:46 (13 years ago)
Author:
Henrik Bettermann
Message:

KOFA -> Kofa

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/browser/layout.py

    r7811 r7819  
    3333from zope.interface import Interface
    3434from zope.site.hooks import getSite
    35 from waeup.kofa.interfaces import IKOFAObject, IUserAccount
     35from waeup.kofa.interfaces import IKofaObject, IUserAccount
    3636from waeup.kofa.browser.interfaces import ITheme
    37 from waeup.kofa.browser.theming import get_all_themes, KOFAThemeBase
     37from waeup.kofa.browser.theming import get_all_themes, KofaThemeBase
    3838from waeup.kofa.students.interfaces import IStudentNavigation
    3939from waeup.kofa.applicants.interfaces import IApplicant
     
    5656
    5757    def __call__(self, success):
    58         action = KOFAAction(self.label, success=success, **self.options)
     58        action = KofaAction(self.label, success=success, **self.options)
    5959        self.actions.append(action)
    6060        return action
    6161
    62 class KOFAAction(Action):
     62class KofaAction(Action):
    6363
    6464    def __init__(self, label, style='', **options):
    65         super(KOFAAction, self).__init__(label, **options)
     65        super(KofaAction, self).__init__(label, **options)
    6666        self.style = style
    6767
     
    150150        return True
    151151
    152 class KOFALayout(UtilityView,Layout):
     152class KofaLayout(UtilityView,Layout):
    153153    """A megrok.layout.Layout with additional methods.
    154154    """
    155155    grok.baseclass()
    156156
    157 class KOFAForm(UtilityView,Form):
     157class KofaForm(UtilityView,Form):
    158158    """A megrok.layout.Form with additional methods.
    159159    """
     
    161161
    162162    def setUpWidgets(self,ignore_request=False):
    163         super(KOFAForm,self).setUpWidgets(ignore_request)
     163        super(KofaForm,self).setUpWidgets(ignore_request)
    164164        # Width parameters will be overridden by Bootstrap
    165165        # so we have to set the css class
     
    171171            self.widgets['body'].cssClass = 'span9'
    172172
    173 class KOFAPage(UtilityView,Page):
     173class KofaPage(UtilityView,Page):
    174174    """A megrok.layout page with additional methods.
    175175    """
    176176    grok.baseclass()
    177177
    178 class KOFADisplayFormPage(UtilityView,DisplayForm):
     178class KofaDisplayFormPage(UtilityView,DisplayForm):
    179179    """A megrok.layout.DisplayForm with additional methods.
    180180    """
     
    182182    template = default_waeup_display_template
    183183
    184 class KOFAEditFormPage(UtilityView,EditForm):
     184class KofaEditFormPage(UtilityView,EditForm):
    185185    """A megrok.layout.EditForm with additional methods.
    186186    """
     
    189189
    190190    def setUpWidgets(self,ignore_request=False):
    191         super(KOFAEditFormPage,self).setUpWidgets(ignore_request)
     191        super(KofaEditFormPage,self).setUpWidgets(ignore_request)
    192192        for widget in self.widgets:
    193193            if widget.__class__.__name__ == 'TextWidget':
     
    207207            self.widgets['perm_address'].height = 10
    208208
    209 class KOFAAddFormPage(UtilityView,AddForm):
     209class KofaAddFormPage(UtilityView,AddForm):
    210210    """A megrok.layout.AddForm with additional methods.
    211211    """
     
    213213    template = default_waeup_edit_template
    214214
    215 class SiteLayout(KOFALayout):
     215class SiteLayout(KofaLayout):
    216216    """ The general site layout.
    217217    """
    218     grok.context(IKOFAObject)
     218    grok.context(IKofaObject)
    219219
    220220    #: An instance of the default theme to use for the site layout
    221     default_theme = KOFAThemeBase()
     221    default_theme = KofaThemeBase()
    222222    stafftemp = grok.PageTemplateFile('templates/staffsitelayout.pt')
    223223    studenttemp = grok.PageTemplateFile('templates/studentsitelayout.pt')
Note: See TracChangeset for help on using the changeset viewer.