Changeset 3147 for WAeUP_SRP


Ignore:
Timestamp:
12 Feb 2008, 11:55:24 (17 years ago)
Author:
joachim
Message:

this seams to count the pending records correctly

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/WAeUPTool.py

    r3145 r3147  
    22172217                return msg
    22182218            not_imported = []
     2219        pending_keys = pending_records.keys()[:]
    22192220        for item in items:
    22202221            item = dict((k.strip(),l.strip()) for (k,l) in item.items())
     
    22512252                temp_item['Error'] = error
    22522253                msg = format_error % temp_item
    2253                 if id not in pending_records.keys():
     2254                #if id not in pending_records.keys():
     2255                if id not in pending_keys:
    22542256                    temp_item['id'] = id
    22552257                    pending_records[id] = temp_item
    22562258                    logger.info("%(id)s added to pending %(msg)s" % vars())
     2259                    pending_keys += id,
    22572260                    new_imports_pending += 1
    22582261                else:
Note: See TracChangeset for help on using the changeset viewer.