Changeset 2702
- Timestamp:
- 18 Nov 2007, 07:35:55 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/WAeUPTool.py
r2701 r2702 1616 1616 d['Title'] = f2t[pt]['title'] 1617 1617 for field in f2t[pt]['fields']: 1618 d[field] = mapping.get(field,'') .strip()1618 d[field] = mapping.get(field,'') 1619 1619 1620 1620 if pt == "StudentApplication": … … 1793 1793 return em 1794 1794 for item in items: 1795 item = [k.strip() for k in item] 1795 1796 if start: 1796 1797 start = False … … 1798 1799 logger.info('%s starts import from %s.csv in %s mode with schema and layout %s' % (member,filename,mode,iname)) 1799 1800 attrs = csv.reader(open("%s/import/%s.csv" % (i_home,filename),"rb")).next() 1800 import_keys = [k for k in attrs if not k.startswith('ignore')]1801 import_keys = [k.strip() for k in attrs if not k.startswith('ignore')] 1801 1802 diff2schema = set(import_keys).difference(set(schema.keys())) 1802 1803 diff2layout = set(import_keys).difference(set(layout.keys()))
Note: See TracChangeset for help on using the changeset viewer.