Author: mcantelon
Date: Tue Jan 17 15:39:30 2012
New Revision: 10705
Log:
Got rid of only partially implemented 'test mode'.
Modified:
trunk/lib/QubitFlatfileImport.class.php
Modified: trunk/lib/QubitFlatfileImport.class.php
==============================================================================
--- trunk/lib/QubitFlatfileImport.class.php Tue Jan 17 15:10:28 2012
(r10704)
+++ trunk/lib/QubitFlatfileImport.class.php Tue Jan 17 15:39:30 2012
(r10705)
@@ -46,7 +46,6 @@
'status',
'ignoreColumns',
'columnNames',
- 'testing',
'preSaveLogic',
'postSaveLogic',
'saveLogic',
@@ -61,7 +60,6 @@
$this->setPropertiesFromArray($this, $options, $allowedProperties);
// initialize bookkeeping of rows processed
- $this->status = ($options['status']) ? $options['status'] : $this->status;
$this->status['rows'] = 0;
// initialize row status variables
@@ -582,11 +580,7 @@
if (isset($this->className))
{
- // if not in testing mode, save object
- if (!isset($this->testing) || !$this->testing)
- {
- $this->object->save();
- }
+ $this->object->save();
// execute row completion logic
$this->executeClosurePropertyIfSet('postSaveLogic');
@@ -701,10 +695,7 @@
$event->actorId = $actor->id;
}
- if (!isset($self->testing) || !$self->testing)
- {
- $event->save();
- }
+ $event->save();
return $event;
}
--
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.