Ignore:
Timestamp:
20 Nov 2012, 11:16:38 (12 years ago)
Author:
Henrik Bettermann
Message:

Replace 'has_key' by 'in'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser.py

    r9531 r9701  
    169169    def delApplicantsContainers(self, **data):
    170170        form = self.request.form
    171         if form.has_key('val_id'):
     171        if 'val_id' in form:
    172172            child_id = form['val_id']
    173173        else:
     
    417417    def delApplicant(self, **data):
    418418        form = self.request.form
    419         if form.has_key('val_id'):
     419        if 'val_id' in form:
    420420            child_id = form['val_id']
    421421        else:
     
    442442    def createStudents(self, **data):
    443443        form = self.request.form
    444         if form.has_key('val_id'):
     444        if 'val_id' in form:
    445445            child_id = form['val_id']
    446446        else:
     
    849849    def delPaymentTickets(self, **data):
    850850        form = self.request.form
    851         if form.has_key('val_id'):
     851        if 'val_id' in form:
    852852            child_id = form['val_id']
    853853        else:
Note: See TracChangeset for help on using the changeset viewer.