So far this module works great and it seems to be the only one to support UUID's. Thank you! One thing I'm missing though is Drush support. That would be awesome. Are there any plans to implement this?

Comments

ronino’s picture

StatusFileSize
new2.47 KB

Here's a patch to add Drush support for imports from local files. Apply the patch and clear your cache. Then run e.g.
drush taxonomy_xml-import my_tags.xml --vocabulary=my_tags

I need this to automate the import of testing data into my development system.

scor’s picture

Title: Drush support? » Drush support for importing taxonomy vocabularies
Status: Active » Needs review
StatusFileSize
new2.44 KB

Thanks @Ronino! this is working great! I had trouble applying the patch so I rerolled it so it doesn't expect taxonomy_xml.drush.inc to already exist. I also renamed the command so it's consistent and only includes dashes as opposed to a combination of underscores and dashes.

dman’s picture

cool, I'll give this a go.
Sorry I didn't notice the issue earlier. Thumbs up to this!

ronino’s picture

StatusFileSize
new2.44 KB

scor wrote:

I also renamed the command so it's consistent and only includes dashes as opposed to a combination of underscores and dashes.

I changed two more occurrences of taxonomy_xml-import to taxonomy-xml-import in your patch ;-). I searched for but couldn't find any convention for naming commands when I made my version...

pkil’s picture

I'm not sure exactly what is going on, but for some reason if I do a taxonomy xml import using drush / cli it takes about 10 times longer than if I do it via the admin interface in drupal.

At first I thought it might be my php.ini settings in cli compared to the apache php.ini, but they are basically identical except for some disallow function... Has anyone come accross this or think of what it could be?