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

KOFA -> Kofa

Location:
main/waeup.kofa/trunk/src/waeup/kofa/hostels
Files:
3 edited

Legend:

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

    r7811 r7819  
    2323from zope.component import getUtility
    2424from waeup.kofa.browser import (
    25     KOFAEditFormPage, KOFAAddFormPage, KOFADisplayFormPage,
     25    KofaEditFormPage, KofaAddFormPage, KofaDisplayFormPage,
    2626    NullValidator)
    2727from waeup.kofa.browser.breadcrumbs import Breadcrumb
     
    3232    ManageActionButton, PrimaryNavTab)
    3333from waeup.kofa.browser.layout import jsaction, action
    34 from waeup.kofa.interfaces import IKOFAObject, IKOFAUtils
     34from waeup.kofa.interfaces import IKofaObject, IKofaUtils
    3535from waeup.kofa.interfaces import MessageFactory as _
    3636from waeup.kofa.hostels.vocabularies import NOT_OCCUPIED
     
    6161    """
    6262
    63     grok.context(IKOFAObject)
     63    grok.context(IKofaObject)
    6464    grok.order(5)
    6565    grok.require('waeup.viewHostels')
     
    9696            mapping = {'a':co[1], 'b':co[2], 'c':co[3]})
    9797
    98 class HostelsContainerPage(KOFADisplayFormPage):
     98class HostelsContainerPage(KofaDisplayFormPage):
    9999    """The standard view for hostels containers.
    100100    """
     
    113113    text = _('Manage accommodation section')
    114114
    115 class HostelsContainerManagePage(KOFADisplayFormPage):
     115class HostelsContainerManagePage(KofaDisplayFormPage):
    116116    """The manage page for hostel containers.
    117117    """
     
    148148        return
    149149
    150 class HostelAddFormPage(KOFAAddFormPage):
     150class HostelAddFormPage(KofaAddFormPage):
    151151    """Add-form to add a hostel.
    152152    """
     
    175175        return
    176176
    177 class HostelDisplayFormPage(KOFADisplayFormPage):
     177class HostelDisplayFormPage(KofaDisplayFormPage):
    178178    """ Page to display hostel data
    179179    """
     
    196196    target = 'manage'
    197197
    198 class HostelManageFormPage(KOFAEditFormPage):
     198class HostelManageFormPage(KofaEditFormPage):
    199199    """ View to edit hostel data
    200200    """
     
    261261        switched = [] # for log file
    262262        switched_translated = [] # for flash message
    263         portal_language = getUtility(IKOFAUtils).PORTAL_LANGUAGE
     263        portal_language = getUtility(IKofaUtils).PORTAL_LANGUAGE
    264264        preferred_language = self.request.cookies.get(
    265265            'kofa.language', portal_language)
     
    306306        return
    307307
    308 class BedManageFormPage(KOFAEditFormPage):
     308class BedManageFormPage(KofaEditFormPage):
    309309    """ View to edit bed data
    310310    """
  • main/waeup.kofa/trunk/src/waeup/kofa/hostels/interfaces.py

    r7811 r7819  
    1818from zope.interface import invariant, Invalid
    1919from zope import schema
    20 from waeup.kofa.interfaces import IKOFAObject
     20from waeup.kofa.interfaces import IKofaObject
    2121from waeup.kofa.interfaces import MessageFactory as _
    2222from waeup.kofa.hostels.vocabularies import (
    2323    bed_letters, blocks, special_handling, StudentSource)
    2424
    25 class IHostelsContainer(IKOFAObject):
     25class IHostelsContainer(IKofaObject):
    2626    """A container for all kind of hostel objects.
    2727
    2828    """
    2929
    30 class IHostel(IKOFAObject):
     30class IHostel(IKofaObject):
    3131    """A base representation of hostels.
    3232
     
    146146            raise Invalid(_('Bed categories overlap.'))
    147147
    148 class IBed(IKOFAObject):
     148class IBed(IKofaObject):
    149149    """A base representation of beds.
    150150
  • main/waeup.kofa/trunk/src/waeup/kofa/hostels/vocabularies.py

    r7811 r7819  
    2222from zope.catalog.interfaces import ICatalog
    2323from zc.sourcefactory.contextual import BasicContextualSourceFactory
    24 from waeup.kofa.interfaces import SimpleKOFAVocabulary
     24from waeup.kofa.interfaces import SimpleKofaVocabulary
    2525from waeup.kofa.interfaces import MessageFactory as _
    2626
     
    5454        return "%s - %s" % (value, self.acco_students(context)[value])
    5555
    56 bed_letters = SimpleKOFAVocabulary(
     56bed_letters = SimpleKofaVocabulary(
    5757    (_('Bed A'),'A'),
    5858    (_('Bed B'),'B'),
     
    6666    )
    6767
    68 blocks = SimpleKOFAVocabulary(
     68blocks = SimpleKofaVocabulary(
    6969    (_('Block A'),'A'),
    7070    (_('Block B'),'B'),
     
    8484    )
    8585
    86 special_handling = SimpleKOFAVocabulary(
     86special_handling = SimpleKofaVocabulary(
    8787    (_('Regular Hostel'),'regular'),
    8888    (_('Blocked Hostel'),'blocked'),
Note: See TracChangeset for help on using the changeset viewer.