Changeset 9701 for main/waeup.kofa/trunk/src/waeup/kofa/hostels
- Timestamp:
- 20 Nov 2012, 11:16:38 (12 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/hostels
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/hostels/browser.py
r9534 r9701 150 150 def delHostels(self, **data): 151 151 form = self.request.form 152 if form.has_key('val_id'):152 if 'val_id' in form: 153 153 deleted = [] 154 154 child_id = form['val_id'] … … 285 285 def switchReservations(self, **data): 286 286 form = self.request.form 287 if form.has_key('val_id'):287 if 'val_id' in form: 288 288 child_id = form['val_id'] 289 289 else: … … 315 315 def releaseBeds(self, **data): 316 316 form = self.request.form 317 if form.has_key('val_id'):317 if 'val_id' in form: 318 318 child_id = form['val_id'] 319 319 else: -
main/waeup.kofa/trunk/src/waeup/kofa/hostels/hostel.py
r9448 r9701 119 119 bt = u'%s_%s_%s' % (self.special_handling,sex,bt) 120 120 uid = u'%s_%s_%d_%s' % (self.hostel_id,block,room_nr,bed) 121 if self.has_key(uid):121 if uid in self: 122 122 bed = self[uid] 123 123 # Renumber remaining beds
Note: See TracChangeset for help on using the changeset viewer.