Author: sevein
Date: Wed Aug 22 15:30:04 2012
New Revision: 12171

Log:
Add capability to import CSV from a parent, fixes issue 2418. See also r12170.

Modified:
   trunk/apps/qubit/modules/informationobject/templates/_contextMenu.php
   trunk/lib/QubitCsvImport.class.php

Modified: trunk/apps/qubit/modules/informationobject/templates/_contextMenu.php
==============================================================================
--- trunk/apps/qubit/modules/informationobject/templates/_contextMenu.php       
Wed Aug 22 15:24:46 2012        (r12170)
+++ trunk/apps/qubit/modules/informationobject/templates/_contextMenu.php       
Wed Aug 22 15:30:04 2012        (r12171)
@@ -27,6 +27,7 @@
     <ul class="clearfix">
 
       <li><?php echo link_to(__('XML'), array($resource, 'module' => 'object', 
'action' => 'importSelect', 'type' => 'xml')) ?></li>
+      <li><?php echo link_to(__('CSV'), array($resource, 'module' => 'object', 
'action' => 'importSelect', 'type' => 'csv')) ?></li>
 
     </ul>
   </div>

Modified: trunk/lib/QubitCsvImport.class.php
==============================================================================
--- trunk/lib/QubitCsvImport.class.php  Wed Aug 22 15:24:46 2012        (r12170)
+++ trunk/lib/QubitCsvImport.class.php  Wed Aug 22 15:30:04 2012        (r12171)
@@ -63,8 +63,8 @@
     // Build command string
     if (isset($this->parent))
     {
-      // Example: php symfony csv:import --source-name="$sourceName" 
/tmp/foobar
-      $command = sprintf('php %s %s --source-name=%s %s',
+      // Example: php symfony csv:import --parent-slug="$sourceName" 
/tmp/foobar
+      $command = sprintf('php %s %s --parent-slug=%s %s',
         
escapeshellarg(sfConfig::get('sf_root_dir').DIRECTORY_SEPARATOR.'symfony'),
         escapeshellarg($taskClassName),
         escapeshellarg($parent->slug),

-- 
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.

Reply via email to