Changeset 3347
- Timestamp:
- 18 Mar 2008, 16:29:37 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/WAeUPImport.py
r3336 r3347 162 162 # or k.strip() in self.info.keys())] 163 163 import_keys = [k.strip() for k in headline if not (k.strip() in self.info.keys())] 164 info_keys = [k.strip() for k in headline if k.strip() in self.info.keys()] 164 165 si = set(import_keys) 165 166 ss = set(self.schema.keys()) … … 173 174 while True: 174 175 if len(values) != len(import_keys): 175 msg += "%d fields in headline but %d values" % (len(import_keys),len(values)) 176 if len(values) == len(import_keys) + len(info_keys): 177 msg += "fields from pending file in headline" 178 else: 179 msg += "%d fields in headline but %d values" % (len(import_keys),len(values)) 176 180 break 177 181 for k in import_keys:
Note: See TracChangeset for help on using the changeset viewer.