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.

Location:
main/waeup.sirp/trunk/src/waeup/sirp/browser
Files:
11 edited

Legend:

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

    r7274 r7321  
    22
    33from waeup.sirp.browser.layout import (
    4     WAeUPPage, WAeUPForm, WAeUPLayout, WAeUPDisplayFormPage, WAeUPEditFormPage,
    5     WAeUPAddFormPage, NullValidator)
     4    SIRPPage, SIRPForm, SIRPLayout, SIRPDisplayFormPage, SIRPEditFormPage,
     5    SIRPAddFormPage, NullValidator)
    66from waeup.sirp.browser.pages import ContactAdminForm
    77
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/breadcrumbs.py

    r7195 r7321  
    3333    """
    3434    grok.provides(IBreadcrumb)
    35     grok.context(interfaces.IWAeUPObject)
     35    grok.context(interfaces.ISIRPObject)
    3636    grok.name('index')
    3737
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/browser.txt

    r7234 r7321  
    1 Browsing the WAeUP portal
    2 *************************
    3 
    4 Here we visit all parts of a WAeUP portal using a browser.
     1Browsing SIRP
     2*************
     3
     4Here we visit all parts of a SIRP portal using a browser.
    55
    66University
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/exceptions.py

    r7195 r7321  
    2222from zope.publisher.interfaces import INotFound
    2323from zope.security.interfaces import IUnauthorized
    24 from waeup.sirp.browser.layout import WAeUPPage
     24from waeup.sirp.browser.layout import SIRPPage
    2525
    2626grok.templatedir('templates')
     
    6161
    6262
    63 class NotFoundPage(WAeUPPage):
     63class NotFoundPage(SIRPPage):
    6464    """A page rendered when an object cannot be found.
    6565
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/interfaces.py

    r7308 r7321  
    2121from zope.interface import Interface, Attribute
    2222from waeup.sirp.interfaces import (
    23     IWAeUPObject, IUniversity, IUsersContainer, IDataCenter)
     23    ISIRPObject, IUniversity, IUsersContainer, IDataCenter)
    2424from waeup.sirp.university.interfaces import (
    2525    IFacultyContainer, IFaculty, IFacultyAdd, IDepartment, IDepartmentAdd,
  • 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')
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/pages.py

    r7274 r7321  
    1616## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
    1717##
    18 """ Viewing components for WAeUP objects.
     18""" Viewing components for SIRP objects.
    1919"""
    2020import copy
     
    3838from zope.session.interfaces import ISession
    3939from waeup.sirp.browser import (
    40     WAeUPPage, WAeUPForm, WAeUPEditFormPage, WAeUPAddFormPage,
    41     WAeUPDisplayFormPage, NullValidator)
     40    SIRPPage, SIRPForm, SIRPEditFormPage, SIRPAddFormPage,
     41    SIRPDisplayFormPage, NullValidator)
    4242from waeup.sirp.browser.interfaces import (
    4343    IUniversity, IFacultyContainer, IFaculty, IFacultyAdd,
     
    4646from waeup.sirp.browser.resources import warning, datepicker, tabs, datatable
    4747from waeup.sirp.interfaces import(
    48     IWAeUPObject, IUsersContainer, IUserAccount, IDataCenter,
    49     IWAeUPXMLImporter, IWAeUPXMLExporter, IBatchProcessor,
     48    ISIRPObject, IUsersContainer, IUserAccount, IDataCenter,
     49    ISIRPXMLImporter, ISIRPXMLExporter, IBatchProcessor,
    5050    ILocalRolesAssignable, DuplicationError, IConfigurationContainer,
    5151    ISessionConfiguration, ISessionConfigurationAdd,
     
    6060from waeup.sirp.utils.helpers import get_user_account, send_mail
    6161
    62 grok.context(IWAeUPObject)
     62grok.context(ISIRPObject)
    6363grok.templatedir('templates')
    6464
     
    139139#
    140140
    141 class LoginPage(WAeUPPage):
     141class LoginPage(SIRPPage):
    142142    """A login page, available for all objects.
    143143    """
    144144    grok.name('login')
    145     grok.context(IWAeUPObject)
     145    grok.context(ISIRPObject)
    146146    grok.require('waeup.Public')
    147147    title = u'Login'
     
    174174
    175175
    176 class LogoutPage(WAeUPPage):
     176class LogoutPage(SIRPPage):
    177177    """A logout page. Calling this page will log the current user out.
    178178    """
    179     grok.context(IWAeUPObject)
     179    grok.context(ISIRPObject)
    180180    grok.require('waeup.Public')
    181181    grok.name('logout')
     
    185185            auth = getUtility(IAuthentication)
    186186            ILogout(auth).logout(self.request)
    187             self.flash("You have been logged out. Thanks for using WAeUP SIRP!")
     187            self.flash("You have been logged out. Thanks for using SIRP SIRP!")
    188188        self.redirect(self.application_url())
    189189
     
    192192#
    193193
    194 class ContactAdminForm(WAeUPForm):
     194class ContactAdminForm(SIRPForm):
    195195    grok.name('contactadmin')
    196196    #grok.context(IUniversity)
     
    263263#
    264264
    265 class UniversityPage(WAeUPDisplayFormPage):
     265class UniversityPage(SIRPDisplayFormPage):
    266266    """ The main university page.
    267267    """
     
    286286        return view.widgets['frontpage']()
    287287
    288 class AdministrationPage(WAeUPPage):
     288class AdministrationPage(SIRPPage):
    289289    """ The administration overview page.
    290290    """
     
    333333#
    334334
    335 class UsersContainerPage(WAeUPPage):
     335class UsersContainerPage(SIRPPage):
    336336    """Overview page for all local users.
    337337    """
     
    370370        return site_roles_string
    371371
    372 class AddUserFormPage(WAeUPAddFormPage):
     372class AddUserFormPage(SIRPAddFormPage):
    373373    grok.require('waeup.manageUsers')
    374374    grok.context(IUsersContainer)
     
    407407        self.redirect(self.url(self.context))
    408408
    409 class UserManageFormPage(WAeUPEditFormPage):
     409class UserManageFormPage(SIRPEditFormPage):
    410410    """Manage a user account.
    411411    """
     
    499499        return "%s (%s)" % (self.context.title, self.context.__name__)
    500500
    501 class MyRolesPage(WAeUPPage):
     501class MyRolesPage(SIRPPage):
    502502    """Display site roles and local roles assigned to officers.
    503503    """
     
    535535#
    536536
    537 class SearchPage(WAeUPPage):
     537class SearchPage(SIRPPage):
    538538    """General search page for the academics section.
    539539    """
     
    562562#
    563563
    564 class ConfigurationContainerDisplayFormPage(WAeUPDisplayFormPage):
     564class ConfigurationContainerDisplayFormPage(SIRPDisplayFormPage):
    565565    """View page of the configuration container.
    566566    """
     
    574574    form_fields['frontpage'].custom_widget = ReSTDisplayWidget
    575575
    576 class ConfigurationContainerManageFormPage(WAeUPEditFormPage):
     576class ConfigurationContainerManageFormPage(SIRPEditFormPage):
    577577    """Manage page of the configuration container. We always use the
    578578    manage page in the UI not the view page, thus we use the index name here.
     
    629629        return
    630630
    631 class SessionConfigurationAddFormPage(WAeUPAddFormPage):
     631class SessionConfigurationAddFormPage(SIRPAddFormPage):
    632632    """Add a session configuration object to configuration container.
    633633    """
     
    657657        return
    658658
    659 class SessionConfigurationManageFormPage(WAeUPEditFormPage):
     659class SessionConfigurationManageFormPage(SIRPEditFormPage):
    660660    """Manage session configuration object.
    661661    """
     
    692692#
    693693
    694 class DatacenterPage(WAeUPPage):
     694class DatacenterPage(SIRPPage):
    695695    grok.context(IDataCenter)
    696696    grok.name('index')
     
    699699    pnav = 0
    700700
    701 class DatacenterUploadPage(WAeUPPage):
     701class DatacenterUploadPage(SIRPPage):
    702702    grok.context(IDataCenter)
    703703    grok.name('upload')
     
    743743        return '%s_%s%s' % (base, filtered_username, ext.lower())
    744744
    745 class DatacenterImportStep1(WAeUPPage):
     745class DatacenterImportStep1(SIRPPage):
    746746    """Manual import step 1: choose file
    747747    """
     
    773773            self.redirect(self.url(self.context, '@@import2'))
    774774
    775 class DatacenterImportStep2(WAeUPPage):
     775class DatacenterImportStep2(SIRPPage):
    776776    """Manual import step 2: choose importer
    777777    """
     
    891891            self.flash(warnings)
    892892
    893 class DatacenterImportStep3(WAeUPPage):
     893class DatacenterImportStep3(SIRPPage):
    894894    """Manual import step 3: modify header
    895895    """
     
    995995            self.flash(warnings)
    996996
    997 class DatacenterImportStep4(WAeUPPage):
     997class DatacenterImportStep4(SIRPPage):
    998998    """Manual import step 4: do actual import
    999999    """
     
    10521052                linenum - (self.warn_num)))
    10531053
    1054 class DatacenterLogsOverview(WAeUPPage):
     1054class DatacenterLogsOverview(SIRPPage):
    10551055    grok.context(IDataCenter)
    10561056    grok.name('logs')
     
    10731073        self.files = self.context.getLogFiles()
    10741074
    1075 class DatacenterLogsFileview(WAeUPPage):
     1075class DatacenterLogsFileview(SIRPPage):
    10761076    grok.context(IDataCenter)
    10771077    grok.name('show')
     
    10921092        self.filecontents = open(fullpath, 'rb').read()
    10931093
    1094 class DatacenterSettings(WAeUPPage):
     1094class DatacenterSettings(SIRPPage):
    10951095    grok.context(IDataCenter)
    10961096    grok.name('manage')
     
    11321132
    11331133    def render(self):
    1134         exporter = IWAeUPXMLExporter(self.context)
     1134        exporter = ISIRPXMLExporter(self.context)
    11351135        xml = exporter.export().read()
    11361136        self.response.setHeader(
     
    11381138        return xml
    11391139
    1140 class ImportXMLPage(WAeUPPage):
     1140class ImportXMLPage(SIRPPage):
    11411141    """Replace the context object by an object created from an XML
    11421142       representation.
     
    11541154        if not xmlfile:
    11551155            return
    1156         importer = IWAeUPXMLImporter(self.context)
     1156        importer = ISIRPXMLImporter(self.context)
    11571157        obj = importer.doImport(xmlfile)
    11581158        if type(obj) != type(self.context):
     
    11751175#
    11761176
    1177 class FacultyContainerPage(WAeUPPage):
     1177class FacultyContainerPage(SIRPPage):
    11781178    """ Index page for faculty containers.
    11791179    """
     
    11861186    grok.template('facultypage')
    11871187
    1188 class FacultyContainerManageFormPage(WAeUPEditFormPage):
     1188class FacultyContainerManageFormPage(SIRPEditFormPage):
    11891189    """Manage the basic properties of a `Faculty` instance.
    11901190    """
     
    12241224
    12251225
    1226 class FacultyAddFormPage(WAeUPAddFormPage):
     1226class FacultyAddFormPage(SIRPAddFormPage):
    12271227    """ Page form to add a new faculty to a faculty container.
    12281228    """
     
    12531253# Faculty pages
    12541254#
    1255 class FacultyPage(WAeUPPage):
     1255class FacultyPage(SIRPPage):
    12561256    """Index page of faculties.
    12571257    """
     
    12691269        return 'Departments'
    12701270
    1271 class FacultyManageFormPage(WAeUPEditFormPage):
     1271class FacultyManageFormPage(SIRPEditFormPage):
    12721272    """Manage the basic properties of a `Faculty` instance.
    12731273    """
     
    13411341        return del_local_roles(self,3,**data)
    13421342
    1343 class DepartmentAddFormPage(WAeUPAddFormPage):
     1343class DepartmentAddFormPage(SIRPAddFormPage):
    13441344    """Add a department to a faculty.
    13451345    """
     
    13741374# Department pages
    13751375#
    1376 class DepartmentPage(WAeUPPage):
     1376class DepartmentPage(SIRPPage):
    13771377    """Department index page.
    13781378    """
     
    14071407            yield(dict(url=url, name=key, container=val))
    14081408
    1409 class ShowStudentsPage(WAeUPPage):
     1409class ShowStudentsPage(SIRPPage):
    14101410    """Page that lists all students in the department.
    14111411    """
     
    14301430        return
    14311431
    1432 class DepartmentManageFormPage(WAeUPEditFormPage):
     1432class DepartmentManageFormPage(SIRPEditFormPage):
    14331433    """Manage the basic properties of a `Department` instance.
    14341434    """
     
    15301530        return del_local_roles(self,4,**data)
    15311531
    1532 class CourseAddFormPage(WAeUPAddFormPage):
     1532class CourseAddFormPage(SIRPAddFormPage):
    15331533    """Add-form to add course to a department.
    15341534    """
     
    15711571        return
    15721572
    1573 class CertificateAddFormPage(WAeUPAddFormPage):
     1573class CertificateAddFormPage(SIRPAddFormPage):
    15741574    """Add-form to add certificate to a department.
    15751575    """
     
    16161616# Courses pages
    16171617#
    1618 class CoursePage(WAeUPPage):
     1618class CoursePage(SIRPPage):
    16191619    """Course index page.
    16201620    """
     
    16291629        return 'Course: %s (%s)' % (self.context.title, self.context.code)
    16301630
    1631 class CourseManageFormPage(WAeUPEditFormPage):
     1631class CourseManageFormPage(SIRPEditFormPage):
    16321632    """Edit form page for courses.
    16331633    """
     
    16631663# Certificate pages
    16641664#
    1665 class CertificatePage(WAeUPDisplayFormPage):
     1665class CertificatePage(SIRPDisplayFormPage):
    16661666    """Index page for certificates.
    16671667    """
     
    16831683        return super(CertificatePage, self).update()
    16841684
    1685 class CertificateManageFormPage(WAeUPEditFormPage):
     1685class CertificateManageFormPage(SIRPEditFormPage):
    16861686    """Manage the properties of a `Certificate` instance.
    16871687    """
     
    17381738
    17391739
    1740 class CertificateCourseAddFormPage(WAeUPAddFormPage):
     1740class CertificateCourseAddFormPage(SIRPAddFormPage):
    17411741    """Add-page to add a course ref to a certificate
    17421742    """
     
    17711771# Certificate course pages...
    17721772#
    1773 class CertificateCoursePage(WAeUPPage):
     1773class CertificateCoursePage(SIRPPage):
    17741774    """CertificateCourse index page.
    17751775    """
     
    17881788        return course_levels.getTerm(self.context.level).title
    17891789
    1790 class CertificateCourseManageFormPage(WAeUPEditFormPage):
     1790class CertificateCourseManageFormPage(SIRPEditFormPage):
    17911791    """Manage the basic properties of a `CertificateCourse` instance.
    17921792    """
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/resources.py

    r7280 r7321  
    257257    depends=[reset_fonts_grids])
    258258
    259 #: Register basic WAeUP base CSS (which is based on ``yuiapp.css`` as a
     259#: Register basic SIRP base CSS (which is based on ``yuiapp.css`` as a
    260260#: resource.
    261261waeup_base_css = ResourceInclusion(
     
    263263    depends=[yuiapp_css, base])
    264264
    265 #: The red WAeUP theme registered as a resource.
     265#: The red SIRP theme registered as a resource.
    266266waeuptheme_red1 = ResourceInclusion(
    267267    waeup_sirp, 'waeuptheme-red1.css',
    268268    depends=[waeup_base_css])
    269269
    270 #: The gray WAeUP theme registered as a resource.
     270#: The gray SIRP theme registered as a resource.
    271271waeuptheme_gray1 = ResourceInclusion(
    272272    waeup_sirp, 'waeuptheme-gray1.css',
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/static/waeup-base.css

    r7240 r7321  
    1 /* This is the base stylesheet for WAeUP SIRP. It defines base styles
     1/* This is the base stylesheet for SIRP. It defines base styles
    22additionally or modifying yuiapp.css styles and yuirfg.css. For themes, please create
    33a stylesheet overriding values set here in a file named
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/theming.py

    r7195 r7321  
    2323from zope.interface import Interface
    2424from zope.schema.interfaces import IVocabularyFactory
    25 from waeup.sirp.interfaces import SimpleWAeUPVocabulary
     25from waeup.sirp.interfaces import SimpleSIRPVocabulary
    2626from waeup.sirp.browser.interfaces import ITheme
    2727from waeup.sirp.browser.resources import (
     
    3030    )
    3131
    32 class WAeUPThemeBase(grok.GlobalUtility):
     32class SIRPThemeBase(grok.GlobalUtility):
    3333    grok.implements(ITheme)
    3434    grok.name('base waeup theme')
     
    3939        return [waeup_base_css]
    4040
    41 class WAeUPThemeRed1(grok.GlobalUtility):
     41class SIRPThemeRed1(grok.GlobalUtility):
    4242    grok.implements(ITheme)
    4343    grok.name('red waeup theme')
     
    4848        return [waeuptheme_red1]
    4949
    50 class WAeUPThemeGray1(grok.GlobalUtility):
     50class SIRPThemeGray1(grok.GlobalUtility):
    5151    grok.implements(ITheme)
    5252    grok.name('gray waeup theme')
     
    5757        return [waeuptheme_gray1]
    5858
    59 class WAeUPThemeEmpty(grok.GlobalUtility):
     59class SIRPThemeEmpty(grok.GlobalUtility):
    6060    """A theme based on jQuery only.
    6161
     
    113113        terms = [(theme.description, name)
    114114                 for name, theme in get_all_themes()]
    115         vocab = SimpleWAeUPVocabulary(*terms)
     115        vocab = SimpleSIRPVocabulary(*terms)
    116116        return vocab
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/viewlets.py

    r7243 r7321  
    2828    IFacultyContainer, IFaculty, IDepartment, ICourse, ICertificate,
    2929    ICertificateCourse, IBreadcrumbContainer, IUniversity, IUsersContainer)
    30 from waeup.sirp.interfaces import (IWAeUPObject, IWAeUPXMLExporter,
    31                                    IWAeUPXMLImporter, IDataCenter, IUserAccount)
    32 from waeup.sirp.browser.layout import WAeUPPage, default_primary_nav_template
     30from waeup.sirp.interfaces import (ISIRPObject, ISIRPXMLExporter,
     31                                   ISIRPXMLImporter, IDataCenter, IUserAccount)
     32from waeup.sirp.browser.layout import SIRPPage, default_primary_nav_template
    3333from waeup.sirp.utils.helpers import get_user_account
    3434
    3535grok.templatedir('templates')
    36 grok.context(IWAeUPObject) # Make IWAeUPObject the default context
     36grok.context(ISIRPObject) # Make ISIRPObject the default context
    3737
    3838class LeftSidebar(grok.ViewletManager):
     
    7474    """
    7575    grok.baseclass()
    76     grok.context(IWAeUPObject)
     76    grok.context(ISIRPObject)
    7777    grok.viewletmanager(ActionBar)
    7878    icon = 'actionicon_modify.png' # File must exist in static/
     
    185185
    186186class BreadCrumbs(grok.Viewlet):
    187     grok.context(IWAeUPObject)
     187    grok.context(ISIRPObject)
    188188    grok.viewletmanager(BreadCrumbManager)
    189189    grok.order(1)
     
    227227    grok.baseclass()
    228228    grok.viewletmanager(LeftSidebar)
    229     grok.context(IWAeUPObject)
     229    grok.context(ISIRPObject)
    230230    grok.order(5)
    231231    grok.require('waeup.manageUniversity')
     
    279279    """
    280280    grok.viewletmanager(LeftSidebar)
    281     grok.context(IWAeUPObject)
     281    grok.context(ISIRPObject)
    282282    grok.view(Interface)
    283283    grok.order(2)
     
    313313    """
    314314    grok.viewletmanager(LeftSidebar)
    315     grok.context(IWAeUPObject)
     315    grok.context(ISIRPObject)
    316316    grok.view(Interface)
    317317    grok.order(5)
     
    519519class BrowseActionButton(ActionButton):
    520520    grok.baseclass()
    521     grok.context(IWAeUPObject)
     521    grok.context(ISIRPObject)
    522522    grok.template('actionbutton')
    523523    grok.viewletmanager(ActionBar)
Note: See TracChangeset for help on using the changeset viewer.