Author: mcantelon
Date: Thu Jan 12 17:13:48 2012
New Revision: 10666
Log:
Added warning if source name not manually specified.
Modified:
trunk/lib/task/csvImportTask.class.php
Modified: trunk/lib/task/csvImportTask.class.php
==============================================================================
--- trunk/lib/task/csvImportTask.class.php Thu Jan 12 17:01:12 2012
(r10665)
+++ trunk/lib/task/csvImportTask.class.php Thu Jan 12 17:13:48 2012
(r10666)
@@ -82,6 +82,14 @@
$skipRows = ($options['skip-rows']) ? $options['skip-rows'] : 0;
+ if (!$options['source-name'])
+ {
+ print "WARNING: If you're importing multiple CSV files as part of the "
+ ."same import it's advisable to use the source-name CLI option to "
+ ."specify a source name (otherwise the filename will be used as a "
+ . "source name.\n";
+ }
+
$sourceName = ($options['source-name'])
? $options['source-name']
: basename($arguments['filename']);
--
You received this message because you are subscribed to the Google Groups
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/qubit-commits?hl=en.