Changeset 3271 for WAeUP_SRP/base
- Timestamp:
- 4 Mar 2008, 15:17:36 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/WAeUPTool.py
r3268 r3271 1482 1482 error_string = "" 1483 1483 total += 1 1484 import_mode = item.get('import_mode',' edit')1484 import_mode = item.get('import_mode','') 1485 1485 import_method = getattr(importer, '%(import_mode)s' % vars(),None ) 1486 1486 if import_method is None: 1487 error_string += " no %(import_mode)s" % vars()1487 error_string += "import_mode '%(import_mode)s' is invalid" % vars() 1488 1488 elif (import_mode in importer.required_modes and 1489 1489 not set(importer.required_keys[import_mode]).issubset(set(item.keys()))): … … 1578 1578 logger.info(msg) 1579 1579 elapse = time.time() - elapse 1580 copy2(pending_path,pending_backup) 1580 if os.path.exists(pending_path): 1581 copy2(pending_path,pending_backup) 1581 1582 copy2(pending_tmp,pending_path) 1582 1583 msg = "finished importing from %(import_source_fn)s in %(elapse).2f seconds, " % vars()
Note: See TracChangeset for help on using the changeset viewer.