Ignore:
Timestamp:
10 Dec 2011, 06:15:17 (13 years ago)
Author:
Henrik Bettermann
Message:

Replace the term 'WAeUP' by SIRP which is a WAeUP product.

File:
1 edited

Legend:

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

    r7274 r7321  
    2929from zope.interface import Interface
    3030from zope.site.hooks import getSite
    31 from waeup.sirp.interfaces import IWAeUPObject, IUserAccount
     31from waeup.sirp.interfaces import ISIRPObject, IUserAccount
    3232from waeup.sirp.browser.interfaces import ITheme
    33 from waeup.sirp.browser.theming import get_all_themes, WAeUPThemeGray1
     33from waeup.sirp.browser.theming import get_all_themes, SIRPThemeGray1
    3434from waeup.sirp.students.interfaces import IStudentNavigation
    3535from waeup.sirp.applicants.interfaces import IApplicant
     
    101101        return True
    102102
    103 class WAeUPLayout(Layout, UtilityView):
     103class SIRPLayout(Layout, UtilityView):
    104104    """A megrok.layout.Layout with additional methods.
    105105    """
    106106    grok.baseclass()
    107107
    108 class WAeUPForm(Form, UtilityView):
     108class SIRPForm(Form, UtilityView):
    109109    """A megrok.layout.Form with additional methods.
    110110    """
     
    112112
    113113    def setUpWidgets(self,ignore_request=False):
    114         super(WAeUPForm,self).setUpWidgets(ignore_request)
     114        super(SIRPForm,self).setUpWidgets(ignore_request)
    115115        if self.widgets.get('subject'):
    116116            self.widgets['subject'].displayWidth = 45
     
    120120            self.widgets['body'].width = 35
    121121
    122 class WAeUPPage(Page):
     122class SIRPPage(Page):
    123123    """A megrok.layout page with additional methods.
    124124    """
    125125    grok.baseclass()
    126126
    127 class WAeUPDisplayFormPage(DisplayForm, UtilityView):
     127class SIRPDisplayFormPage(DisplayForm, UtilityView):
    128128    """A megrok.layout.DisplayForm with additional methods.
    129129    """
     
    131131    template = default_waeup_display_template
    132132
    133 class WAeUPEditFormPage(EditForm, UtilityView):
     133class SIRPEditFormPage(EditForm, UtilityView):
    134134    """A megrok.layout.EditForm with additional methods.
    135135    """
     
    138138
    139139    def setUpWidgets(self,ignore_request=False):
    140         super(WAeUPEditFormPage,self).setUpWidgets(ignore_request)
     140        super(SIRPEditFormPage,self).setUpWidgets(ignore_request)
    141141        if self.widgets.get('title'):
    142142            self.widgets['title'].displayWidth = 80
     
    148148            self.widgets['notice'].height = 3
    149149
    150 class WAeUPAddFormPage(AddForm,  UtilityView):
     150class SIRPAddFormPage(AddForm,  UtilityView):
    151151    """A megrok.layout.AddForm with additional methods.
    152152    """
     
    154154    template = default_waeup_edit_template
    155155
    156 class SiteLayout(WAeUPLayout):
     156class SiteLayout(SIRPLayout):
    157157    """ The general site layout.
    158158    """
    159     grok.context(IWAeUPObject)
     159    grok.context(ISIRPObject)
    160160
    161161    #: An instance of the default theme to use for the site layout
    162     default_theme = WAeUPThemeGray1()
     162    default_theme = SIRPThemeGray1()
    163163    stafftemp = grok.PageTemplateFile('templates/staffsitelayout.pt')
    164164    studenttemp = grok.PageTemplateFile('templates/studentsitelayout.pt')
Note: See TracChangeset for help on using the changeset viewer.