- Timestamp:
- 21 Sep 2012, 08:19:35 (12 years ago)
- Location:
- main/waeup.kofa/branches/uli-zc-async
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/branches/uli-zc-async
- Property svn:mergeinfo changed
/main/waeup.kofa/branches/uli-async-update removed /main/waeup.kofa/branches/uli-autoinclude-less removed /main/waeup.kofa/trunk removed
- Property svn:mergeinfo changed
-
main/waeup.kofa/branches/uli-zc-async/src/waeup/kofa/hostels/interfaces.py
r9209 r9211 17 17 ## 18 18 from datetime import datetime 19 from zope.interface import invariant, Invalid , Attribute19 from zope.interface import invariant, Invalid 20 20 from zope import schema 21 21 from waeup.kofa.interfaces import ( … … 58 58 ) 59 59 60 def clearAllHostels():61 """Clear all hostels.62 """63 64 60 class IHostel(IKofaObject): 65 61 """A base representation of hostels. … … 67 63 """ 68 64 69 bed_statistics = Attribute('Number of booked and total beds')70 71 65 def loggerInfo(ob_class, comment): 72 66 """Adds an INFO message to the log file 73 """74 75 def clearHostel():76 """Remove all beds.77 67 """ 78 68 … … 135 125 ) 136 126 137 beds_for_pre= schema.List(138 title = _(u'Beds for Pre-Study Students'),139 value_type = schema.Choice(140 vocabulary = bed_letters141 ),142 )143 144 127 beds_for_fresh = schema.List( 145 128 title = _(u'Beds for Fresh Students'), … … 189 172 hostel.beds_for_returning + 190 173 hostel.beds_for_final + 191 hostel.beds_for_pre +192 174 hostel.beds_for_all) 193 175 if len(beds) != len(set(beds)): … … 199 181 """ 200 182 201 coordinates = Attribute('The coordinates of the bed from bed_id')202 203 183 def loggerInfo(ob_class, comment): 204 184 """Adds an INFO message to the log file 205 185 """ 206 186 187 def getBedCoordinates(): 188 """Determine the coordinates from bed_id. 189 """ 207 190 def bookBed(student_id): 208 191 """Book a bed for a student.
Note: See TracChangeset for help on using the changeset viewer.