Changeset 4019 for WAeUP_SRP/trunk


Ignore:
Timestamp:
22 Mar 2009, 16:23:23 (16 years ago)
Author:
Henrik Bettermann
Message:

implement import_mode remove

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/WAeUPImport.py

    r3999 r4019  
    263263        return reg_no,msg,mapping
    264264    ###)
    265 
     265   
     266    def remove(self,mapping):
     267        reg_no = mapping.get('reg_no')
     268        msg = ''
     269        while True:
     270            if self.applicants_catalog.getRecordByKey(reg_no) is None:
     271                msg =  "no application record with reg_no %(reg_no)s" % vars()
     272                break
     273            self.applicants_catalog.deleteRecord(reg_no)
     274            break
     275        return reg_no,msg,mapping   
     276   
    266277    def edit(self,mapping):###(
    267278        reg_no = mapping.get('reg_no')
Note: See TracChangeset for help on using the changeset viewer.