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

Legend:

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

    r7257 r7321  
    2121import sys
    2222from waeup.sirp.browser import (
    23     WAeUPEditFormPage, WAeUPAddFormPage, WAeUPDisplayFormPage,
     23    SIRPEditFormPage, SIRPAddFormPage, SIRPDisplayFormPage,
    2424    NullValidator)
    2525from waeup.sirp.browser.breadcrumbs import Breadcrumb
     
    2929from waeup.sirp.browser.viewlets import (
    3030    ManageActionButton, PrimaryNavTab)
    31 from waeup.sirp.interfaces import IWAeUPObject
     31from waeup.sirp.interfaces import ISIRPObject
    3232from waeup.sirp.hostels.vocabularies import NOT_OCCUPIED
    3333from waeup.sirp.hostels.hostel import Hostel
     
    5757    """
    5858
    59     grok.context(IWAeUPObject)
     59    grok.context(ISIRPObject)
    6060    grok.order(5)
    6161    grok.require('waeup.viewHostels')
     
    9191        return 'Block %s, Room %s, Bed %s' % (co[1], co[2], co[3])
    9292
    93 class HostelsContainerPage(WAeUPDisplayFormPage):
     93class HostelsContainerPage(SIRPDisplayFormPage):
    9494    """The standard view for hostels containers.
    9595    """
     
    109109    text = 'Manage accommodation section'
    110110
    111 class HostelsContainerManagePage(WAeUPDisplayFormPage):
     111class HostelsContainerManagePage(SIRPDisplayFormPage):
    112112    """The manage page for hostel containers.
    113113    """
     
    141141        return
    142142
    143 class HostelAddFormPage(WAeUPAddFormPage):
     143class HostelAddFormPage(SIRPAddFormPage):
    144144    """Add-form to add a hostel.
    145145    """
     
    169169        return
    170170
    171 class HostelDisplayFormPage(WAeUPDisplayFormPage):
     171class HostelDisplayFormPage(SIRPDisplayFormPage):
    172172    """ Page to display hostel data
    173173    """
     
    194194    target = 'manage'
    195195
    196 class HostelManageFormPage(WAeUPEditFormPage):
     196class HostelManageFormPage(SIRPEditFormPage):
    197197    """ View to edit hostel data
    198198    """
     
    294294        return
    295295
    296 class BedManageFormPage(WAeUPEditFormPage):
     296class BedManageFormPage(SIRPEditFormPage):
    297297    """ View to edit bed data
    298298    """
  • main/waeup.sirp/trunk/src/waeup/sirp/hostels/interfaces.py

    r7257 r7321  
    1818from zope.interface import invariant, Invalid
    1919from zope import schema
    20 from waeup.sirp.interfaces import IWAeUPObject
     20from waeup.sirp.interfaces import ISIRPObject
    2121from waeup.sirp.hostels.vocabularies import (
    2222    bed_letters, blocks, special_handling, StudentSource)
    2323
    24 class IHostelsContainer(IWAeUPObject):
     24class IHostelsContainer(ISIRPObject):
    2525    """A container for all kind of hostel objects.
    2626
    2727    """
    2828
    29 class IHostel(IWAeUPObject):
     29class IHostel(ISIRPObject):
    3030    """A base representation of hostels.
    3131
     
    145145            raise Invalid('Bed categories overlap.')
    146146
    147 class IBed(IWAeUPObject):
     147class IBed(ISIRPObject):
    148148    """A base representation of beds.
    149149
  • main/waeup.sirp/trunk/src/waeup/sirp/hostels/vocabularies.py

    r7257 r7321  
    2222from zope.catalog.interfaces import ICatalog
    2323from zc.sourcefactory.contextual import BasicContextualSourceFactory
    24 from waeup.sirp.interfaces import SimpleWAeUPVocabulary
     24from waeup.sirp.interfaces import SimpleSIRPVocabulary
    2525
    2626NOT_OCCUPIED = u'not occupied'
     
    5353        return "%s - %s" % (value, self.acco_students(context)[value])
    5454
    55 bed_letters = SimpleWAeUPVocabulary(
     55bed_letters = SimpleSIRPVocabulary(
    5656    ('Bed A','A'),
    5757    ('Bed B','B'),
     
    6565    )
    6666
    67 blocks = SimpleWAeUPVocabulary(
     67blocks = SimpleSIRPVocabulary(
    6868    ('Block A','A'),
    6969    ('Block B','B'),
     
    8383    )
    8484
    85 special_handling = SimpleWAeUPVocabulary(
     85special_handling = SimpleSIRPVocabulary(
    8686    ('Regular Hostel','regular'),
    8787    ('Blocked Hostel','blocked'),
Note: See TracChangeset for help on using the changeset viewer.