Changeset 7321 for main/waeup.sirp/trunk/src/waeup/sirp/hostels
- Timestamp:
- 10 Dec 2011, 06:15:17 (13 years ago)
- 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 21 21 import sys 22 22 from waeup.sirp.browser import ( 23 WAeUPEditFormPage, WAeUPAddFormPage, WAeUPDisplayFormPage,23 SIRPEditFormPage, SIRPAddFormPage, SIRPDisplayFormPage, 24 24 NullValidator) 25 25 from waeup.sirp.browser.breadcrumbs import Breadcrumb … … 29 29 from waeup.sirp.browser.viewlets import ( 30 30 ManageActionButton, PrimaryNavTab) 31 from waeup.sirp.interfaces import I WAeUPObject31 from waeup.sirp.interfaces import ISIRPObject 32 32 from waeup.sirp.hostels.vocabularies import NOT_OCCUPIED 33 33 from waeup.sirp.hostels.hostel import Hostel … … 57 57 """ 58 58 59 grok.context(I WAeUPObject)59 grok.context(ISIRPObject) 60 60 grok.order(5) 61 61 grok.require('waeup.viewHostels') … … 91 91 return 'Block %s, Room %s, Bed %s' % (co[1], co[2], co[3]) 92 92 93 class HostelsContainerPage( WAeUPDisplayFormPage):93 class HostelsContainerPage(SIRPDisplayFormPage): 94 94 """The standard view for hostels containers. 95 95 """ … … 109 109 text = 'Manage accommodation section' 110 110 111 class HostelsContainerManagePage( WAeUPDisplayFormPage):111 class HostelsContainerManagePage(SIRPDisplayFormPage): 112 112 """The manage page for hostel containers. 113 113 """ … … 141 141 return 142 142 143 class HostelAddFormPage( WAeUPAddFormPage):143 class HostelAddFormPage(SIRPAddFormPage): 144 144 """Add-form to add a hostel. 145 145 """ … … 169 169 return 170 170 171 class HostelDisplayFormPage( WAeUPDisplayFormPage):171 class HostelDisplayFormPage(SIRPDisplayFormPage): 172 172 """ Page to display hostel data 173 173 """ … … 194 194 target = 'manage' 195 195 196 class HostelManageFormPage( WAeUPEditFormPage):196 class HostelManageFormPage(SIRPEditFormPage): 197 197 """ View to edit hostel data 198 198 """ … … 294 294 return 295 295 296 class BedManageFormPage( WAeUPEditFormPage):296 class BedManageFormPage(SIRPEditFormPage): 297 297 """ View to edit bed data 298 298 """ -
main/waeup.sirp/trunk/src/waeup/sirp/hostels/interfaces.py
r7257 r7321 18 18 from zope.interface import invariant, Invalid 19 19 from zope import schema 20 from waeup.sirp.interfaces import I WAeUPObject20 from waeup.sirp.interfaces import ISIRPObject 21 21 from waeup.sirp.hostels.vocabularies import ( 22 22 bed_letters, blocks, special_handling, StudentSource) 23 23 24 class IHostelsContainer(I WAeUPObject):24 class IHostelsContainer(ISIRPObject): 25 25 """A container for all kind of hostel objects. 26 26 27 27 """ 28 28 29 class IHostel(I WAeUPObject):29 class IHostel(ISIRPObject): 30 30 """A base representation of hostels. 31 31 … … 145 145 raise Invalid('Bed categories overlap.') 146 146 147 class IBed(I WAeUPObject):147 class IBed(ISIRPObject): 148 148 """A base representation of beds. 149 149 -
main/waeup.sirp/trunk/src/waeup/sirp/hostels/vocabularies.py
r7257 r7321 22 22 from zope.catalog.interfaces import ICatalog 23 23 from zc.sourcefactory.contextual import BasicContextualSourceFactory 24 from waeup.sirp.interfaces import Simple WAeUPVocabulary24 from waeup.sirp.interfaces import SimpleSIRPVocabulary 25 25 26 26 NOT_OCCUPIED = u'not occupied' … … 53 53 return "%s - %s" % (value, self.acco_students(context)[value]) 54 54 55 bed_letters = Simple WAeUPVocabulary(55 bed_letters = SimpleSIRPVocabulary( 56 56 ('Bed A','A'), 57 57 ('Bed B','B'), … … 65 65 ) 66 66 67 blocks = Simple WAeUPVocabulary(67 blocks = SimpleSIRPVocabulary( 68 68 ('Block A','A'), 69 69 ('Block B','B'), … … 83 83 ) 84 84 85 special_handling = Simple WAeUPVocabulary(85 special_handling = SimpleSIRPVocabulary( 86 86 ('Regular Hostel','regular'), 87 87 ('Blocked Hostel','blocked'),
Note: See TracChangeset for help on using the changeset viewer.