Changeset 9701 for main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py
- Timestamp:
- 20 Nov 2012, 11:16:38 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py
r9700 r9701 528 528 def save(self, **data): 529 529 form = self.request.form 530 if form.has_key('transition')and form['transition']:530 if 'transition' in form and form['transition']: 531 531 transition_id = form['transition'] 532 532 wf_info = IWorkflowInfo(self.context) … … 957 957 def delStudyLevels(self, **data): 958 958 form = self.request.form 959 if form.has_key('val_id'):959 if 'val_id' in form: 960 960 child_id = form['val_id'] 961 961 else: … … 1153 1153 def delCourseTicket(self, **data): 1154 1154 form = self.request.form 1155 if form.has_key('val_id'):1155 if 'val_id' in form: 1156 1156 child_id = form['val_id'] 1157 1157 else: … … 1353 1353 def delPaymentTicket(self, **data): 1354 1354 form = self.request.form 1355 if form.has_key('val_id'):1355 if 'val_id' in form: 1356 1356 child_id = form['val_id'] 1357 1357 else: … … 1406 1406 if 'maintenance' in p_category: 1407 1407 current_session = str(student['studycourse'].current_session) 1408 if not student['accommodation'].has_key(current_session):1408 if not current_session in student['accommodation']: 1409 1409 self.flash(_('You have not yet booked accommodation.')) 1410 1410 self.redirect(self.url(self.context)) … … 1559 1559 return 1560 1560 form = self.request.form 1561 if form.has_key('val_id'):1561 if 'val_id' in form: 1562 1562 child_id = form['val_id'] 1563 1563 else: … … 2216 2216 def _delCourseTicket(self, **data): 2217 2217 form = self.request.form 2218 if form.has_key('val_id'):2218 if 'val_id' in form: 2219 2219 child_id = form['val_id'] 2220 2220 else:
Note: See TracChangeset for help on using the changeset viewer.