Changeset 3347


Ignore:
Timestamp:
18 Mar 2008, 16:29:37 (17 years ago)
Author:
joachim
Message:

more informative message if trying to upload a pending-file as csv.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/WAeUPImport.py

    r3336 r3347  
    162162        #                                                 or k.strip() in self.info.keys())]
    163163        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()]
    164165        si = set(import_keys)
    165166        ss = set(self.schema.keys())
     
    173174        while True:
    174175            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))
    176180                break
    177181            for k in import_keys:
Note: See TracChangeset for help on using the changeset viewer.