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/applicants
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/applicant.py

    r7270 r7321  
    2424from hurry.workflow.interfaces import IWorkflowInfo, IWorkflowState
    2525from waeup.sirp.app import University
    26 from waeup.sirp.image import WAeUPImageFile
     26from waeup.sirp.image import SIRPImageFile
    2727from waeup.sirp.imagestorage import DefaultFileStoreHandler
    2828from waeup.sirp.interfaces import (
     
    220220            ApplicantImageStoreHandler, self).createFile(
    221221            store, root,  filename, file_id, file)
    222         return file, path, WAeUPImageFile(
     222        return file, path, SIRPImageFile(
    223223            file_obj.filename, file_obj.data)
    224224
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser.py

    r7318 r7321  
    3434from reportlab.platypus.tables import TableStyle
    3535from waeup.sirp.browser import (
    36     WAeUPPage, WAeUPEditFormPage, WAeUPAddFormPage, WAeUPDisplayFormPage)
     36    SIRPPage, SIRPEditFormPage, SIRPAddFormPage, SIRPDisplayFormPage)
    3737from waeup.sirp.browser.breadcrumbs import Breadcrumb
    3838from waeup.sirp.browser.layout import NullValidator
     
    4141from waeup.sirp.browser.viewlets import ManageActionButton, PrimaryNavTab
    4242from waeup.sirp.interfaces import (
    43     IWAeUPObject, ILocalRolesAssignable, IExtFileStore,
     43    ISIRPObject, ILocalRolesAssignable, IExtFileStore,
    4444    IFileStoreNameChooser, IPasswordValidator, IUserAccount)
    4545from waeup.sirp.permissions import get_users_with_local_roles
     
    6060from waeup.sirp.students.interfaces import IStudentsUtils
    6161
    62 grok.context(IWAeUPObject) # Make IWAeUPObject the default context
    63 
    64 class ApplicantsRootPage(WAeUPPage):
     62grok.context(ISIRPObject) # Make ISIRPObject the default context
     63
     64class ApplicantsRootPage(SIRPPage):
    6565    grok.context(IApplicantsRoot)
    6666    grok.name('index')
     
    8181    text = 'Manage application section'
    8282
    83 class ApplicantsRootManageFormPage(WAeUPEditFormPage):
     83class ApplicantsRootManageFormPage(SIRPEditFormPage):
    8484    grok.context(IApplicantsRoot)
    8585    grok.name('manage')
     
    151151        return del_local_roles(self,2,**data)
    152152
    153 class ApplicantsContainerAddFormPage(WAeUPAddFormPage):
     153class ApplicantsContainerAddFormPage(SIRPAddFormPage):
    154154    grok.context(IApplicantsRoot)
    155155    grok.require('waeup.manageApplication')
     
    229229    """Applicants tab in primary navigation.
    230230    """
    231     grok.context(IWAeUPObject)
     231    grok.context(ISIRPObject)
    232232    grok.order(3)
    233233    grok.require('waeup.viewApplicantsTab')
     
    273273        return self.view.application_url() + rel_link
    274274
    275 class ApplicantsContainerPage(WAeUPDisplayFormPage):
     275class ApplicantsContainerPage(SIRPDisplayFormPage):
    276276    """The standard view for regular applicant containers.
    277277    """
     
    311311#    target = 'login'
    312312
    313 class ApplicantsContainerManageFormPage(WAeUPEditFormPage):
     313class ApplicantsContainerManageFormPage(SIRPEditFormPage):
    314314    grok.context(IApplicantsContainer)
    315315    grok.name('manage')
     
    404404        return del_local_roles(self,3,**data)
    405405
    406 class ApplicantAddFormPage(WAeUPAddFormPage):
     406class ApplicantAddFormPage(SIRPAddFormPage):
    407407    """Add-form to add an applicant.
    408408    """
     
    431431        return
    432432
    433 class ApplicantDisplayFormPage(WAeUPDisplayFormPage):
     433class ApplicantDisplayFormPage(SIRPDisplayFormPage):
    434434    grok.context(IApplicant)
    435435    grok.name('index')
     
    532532
    533533
    534 class OnlinePaymentDisplayFormPage(WAeUPDisplayFormPage):
     534class OnlinePaymentDisplayFormPage(SIRPDisplayFormPage):
    535535    """ Page to view an online payment ticket
    536536    """
     
    700700        pdf.setAuthor('%s (%s)' % (self.request.principal.title,
    701701            self.request.principal.id))
    702         pdf.setCreator('WAeUP SIRP')
     702        pdf.setCreator('SIRP SIRP')
    703703        width, height = A4
    704704        style = getSampleStyleSheet()
     
    802802    return True
    803803
    804 class ApplicantManageFormPage(WAeUPEditFormPage):
     804class ApplicantManageFormPage(SIRPEditFormPage):
    805805    """A full edit view for applicant data.
    806806    """
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/interfaces.py

    r7317 r7321  
    3030from waeup.sirp.schema import TextLineChoice
    3131from waeup.sirp.interfaces import (
    32     IWAeUPObject, year_range, validate_email, academic_sessions_vocab)
     32    ISIRPObject, year_range, validate_email, academic_sessions_vocab)
    3333from waeup.sirp.university.vocabularies import application_categories
    3434from waeup.sirp.students.vocabularies import (
     
    118118            factory.container_title, factory.container_description)
    119119
    120 class IApplicantsRoot(IWAeUPObject, IContainer):
     120class IApplicantsRoot(ISIRPObject, IContainer):
    121121    """A container for university applicants containers.
    122122    """
    123123    pass
    124124
    125 class IApplicantsContainer(IWAeUPObject):
     125class IApplicantsContainer(ISIRPObject):
    126126    """An applicants container contains university applicants.
    127127
     
    275275    'provider'].order =  IApplicantsContainer['provider'].order
    276276
    277 class IApplicantBaseData(IWAeUPObject):
     277class IApplicantBaseData(ISIRPObject):
    278278    """The data for an applicant.
    279279
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/root.py

    r7192 r7321  
    2323from hurry.query.interfaces import IQuery
    2424from zope.component import getUtility
    25 from waeup.sirp.interfaces import IWAeUPSIRPPluggable
     25from waeup.sirp.interfaces import ISIRPPluggable
    2626from waeup.sirp.applicants.interfaces import IApplicantsRoot
    2727from waeup.sirp.utils.helpers import get_current_principal
     
    4949
    5050class ApplicantsPlugin(grok.GlobalUtility):
    51     """A WAeUPSIRPPlugin that creates an applicants root in portal.
     51    """A SIRPPlugin that creates an applicants root in portal.
    5252
    5353    This plugin should be called by a typical
     
    5656    the main site configuration.
    5757
    58     Implements :class:`waeup.sirp.interfaces.IWAeUPSIRPPluggable`
     58    Implements :class:`waeup.sirp.interfaces.ISIRPPluggable`
    5959    """
    6060    grok.name('applicants')
    61     grok.implements(IWAeUPSIRPPluggable)
     61    grok.implements(ISIRPPluggable)
    6262    log_prefix = 'ApplicantsPlugin'
    6363
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/tests/test_applicant.py

    r7260 r7321  
    2626from zope.interface import verify, implements
    2727from zope.location.interfaces import ILocation
    28 from waeup.sirp.image.interfaces import IWAeUPImageFile
     28from waeup.sirp.image.interfaces import ISIRPImageFile
    2929from waeup.sirp.imagestorage import DefaultStorage
    3030from waeup.sirp.interfaces import IFileStoreHandler, IFileStoreNameChooser
     
    3838class FakeImageLocation(object):
    3939    implements(ILocation)
    40     adapts(IWAeUPImageFile)
     40    adapts(ISIRPImageFile)
    4141    def __init__(self, context):
    4242        pass
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/vocabularies.py

    r7192 r7321  
    2020from zope.component import getUtility
    2121from zope.catalog.interfaces import ICatalog
    22 from waeup.sirp.interfaces import SimpleWAeUPVocabulary
     22from waeup.sirp.interfaces import SimpleSIRPVocabulary
    2323from waeup.sirp.students.vocabularies import CertificateSource
    2424
     
    3737    )
    3838
    39 #: A :class:`waeup.sirp.interfaces.SimpleWAeUPVocabulary` of supported
     39#: A :class:`waeup.sirp.interfaces.SimpleSIRPVocabulary` of supported
    4040#: application or screening types.
    41 application_types_vocab = SimpleWAeUPVocabulary(
     41application_types_vocab = SimpleSIRPVocabulary(
    4242    *[(x[0],x[1]) for x in APPLICATION_TYPES])
    43 application_pins_vocab = SimpleWAeUPVocabulary(
     43application_pins_vocab = SimpleSIRPVocabulary(
    4444    *[(u"%s (%s)" % (x[2],x[0]),x[2]) for x in APPLICATION_TYPES])
    4545
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/workflow.py

    r7250 r7321  
    2222from hurry.workflow.interfaces import IWorkflowState, IWorkflowTransitionEvent
    2323from waeup.sirp.applicants.interfaces import IApplicantBaseData
    24 from waeup.sirp.interfaces import IObjectHistory, IWAeUPWorkflowInfo
    25 from waeup.sirp.workflow import WAeUPWorkflow, WAeUPWorkflowInfo
     24from waeup.sirp.interfaces import IObjectHistory, ISIRPWorkflowInfo
     25from waeup.sirp.workflow import SIRPWorkflow, SIRPWorkflowInfo
    2626from waeup.sirp.utils.helpers import get_current_principal
    2727
     
    127127    )
    128128
    129 application_workflow = WAeUPWorkflow(APPLICATION_TRANSITIONS)
     129application_workflow = SIRPWorkflow(APPLICATION_TRANSITIONS)
    130130
    131131class ApplicationWorkflowState(WorkflowState, grok.Adapter):
     
    138138    state_id = 'wf.application.id'
    139139
    140 class ApplicationWorkflowInfo(WAeUPWorkflowInfo, grok.Adapter):
     140class ApplicationWorkflowInfo(SIRPWorkflowInfo, grok.Adapter):
    141141    """Adapter to adapt Applicant objects to workflow info objects.
    142142    """
    143143    grok.context(IApplicantBaseData)
    144     grok.provides(IWAeUPWorkflowInfo)
     144    grok.provides(ISIRPWorkflowInfo)
    145145
    146146    def __init__(self, context):
Note: See TracChangeset for help on using the changeset viewer.