Changeset 13170 for main/waeup.kofa/trunk/src/waeup/kofa
- Timestamp:
- 15 Jul 2015, 11:26:22 (9 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/hostels
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/hostels/browser.py
r13166 r13170 141 141 for id in child_id: 142 142 deleted.append(id) 143 self.context.writeLogMessage(self, 'deleted: % s' % ', '.join(deleted)) 143 self.context.writeLogMessage( 144 self, 'deleted: % s' % ', '.join(deleted)) 144 145 delSubobjects(self, redirect='@@manage', tab='2') 145 146 return -
main/waeup.kofa/trunk/src/waeup/kofa/hostels/hostel.py
r13168 r13170 118 118 if uid in self: 119 119 bed = self[uid] 120 # Renumber remaining bed s120 # Renumber remaining bed 121 121 bed.bed_number = len(self) + 1 - remaining 122 122 remaining -= 1 … … 157 157 158 158 # The following property attributes are only needed 159 # for the exporter to ease evaluation with 159 # for the exporter to ease evaluation with Excel. 160 160 161 161 @property -
main/waeup.kofa/trunk/src/waeup/kofa/hostels/interfaces.py
r13167 r13170 215 215 """ 216 216 217 coordinates = Attribute('The coordinates of the bed from bed_id') 217 coordinates = Attribute('Coordinates tuple derived from bed_id') 218 hall = Attribute('Hall id, for exporter only') 219 block = Attribute('Block letter, for exporter only') 220 room = Attribute('Room number, for exporter only') 221 bed = Attribute('Bed letter, for exporter only') 222 special_handling = Attribute('Special handling code, for exporter only') 223 sex = Attribute('Sex, for exporter only') 224 bt = Attribute('Last part of bed type, for exporter only') 218 225 219 226 def bookBed(student_id): … … 267 274 allocated_bed = [bed.bed_id for bed in beds][0] 268 275 raise Invalid(_( 269 "This student resides in bed ${a}.", mapping = {'a':allocated_bed})) 276 "This student resides in bed ${a}.", 277 mapping = {'a':allocated_bed})) 270 278 271 279 def writeLogMessage(view, message): -
main/waeup.kofa/trunk/src/waeup/kofa/hostels/tests.py
r13165 r13170 77 77 IBed, Bed) 78 78 ) 79 bed = Bed() 80 bed.bed_id = u'a_b_c_d' 81 bed.bed_type = u'a_b_c' 79 82 self.assertTrue( 80 83 verifyObject( 81 IBed, Bed())84 IBed, bed) 82 85 ) 83 86 return
Note: See TracChangeset for help on using the changeset viewer.