Changeset 7819 for main/waeup.kofa/trunk/src/waeup/kofa/hostels/browser.py
- Timestamp:
- 8 Mar 2012, 22:28:46 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/hostels/browser.py
r7811 r7819 23 23 from zope.component import getUtility 24 24 from waeup.kofa.browser import ( 25 K OFAEditFormPage, KOFAAddFormPage, KOFADisplayFormPage,25 KofaEditFormPage, KofaAddFormPage, KofaDisplayFormPage, 26 26 NullValidator) 27 27 from waeup.kofa.browser.breadcrumbs import Breadcrumb … … 32 32 ManageActionButton, PrimaryNavTab) 33 33 from waeup.kofa.browser.layout import jsaction, action 34 from waeup.kofa.interfaces import IK OFAObject, IKOFAUtils34 from waeup.kofa.interfaces import IKofaObject, IKofaUtils 35 35 from waeup.kofa.interfaces import MessageFactory as _ 36 36 from waeup.kofa.hostels.vocabularies import NOT_OCCUPIED … … 61 61 """ 62 62 63 grok.context(IK OFAObject)63 grok.context(IKofaObject) 64 64 grok.order(5) 65 65 grok.require('waeup.viewHostels') … … 96 96 mapping = {'a':co[1], 'b':co[2], 'c':co[3]}) 97 97 98 class HostelsContainerPage(K OFADisplayFormPage):98 class HostelsContainerPage(KofaDisplayFormPage): 99 99 """The standard view for hostels containers. 100 100 """ … … 113 113 text = _('Manage accommodation section') 114 114 115 class HostelsContainerManagePage(K OFADisplayFormPage):115 class HostelsContainerManagePage(KofaDisplayFormPage): 116 116 """The manage page for hostel containers. 117 117 """ … … 148 148 return 149 149 150 class HostelAddFormPage(K OFAAddFormPage):150 class HostelAddFormPage(KofaAddFormPage): 151 151 """Add-form to add a hostel. 152 152 """ … … 175 175 return 176 176 177 class HostelDisplayFormPage(K OFADisplayFormPage):177 class HostelDisplayFormPage(KofaDisplayFormPage): 178 178 """ Page to display hostel data 179 179 """ … … 196 196 target = 'manage' 197 197 198 class HostelManageFormPage(K OFAEditFormPage):198 class HostelManageFormPage(KofaEditFormPage): 199 199 """ View to edit hostel data 200 200 """ … … 261 261 switched = [] # for log file 262 262 switched_translated = [] # for flash message 263 portal_language = getUtility(IK OFAUtils).PORTAL_LANGUAGE263 portal_language = getUtility(IKofaUtils).PORTAL_LANGUAGE 264 264 preferred_language = self.request.cookies.get( 265 265 'kofa.language', portal_language) … … 306 306 return 307 307 308 class BedManageFormPage(K OFAEditFormPage):308 class BedManageFormPage(KofaEditFormPage): 309 309 """ View to edit bed data 310 310 """
Note: See TracChangeset for help on using the changeset viewer.