modilabs/formhub — pull request #128 by dorey (2012-01-30 21:04:49+00:00)
Title: Zip file iterator

not 1000% sure this is ready to merge into master, but starting the pull request to see the diff.

This branch will iterate through the zip_submission_file (produced by bulk uploaders or users who have offloaded content via USB) and it will gather all the files that look like ODK instances, and process them (regardless of the structure of the zip.)

Previously, XML in a zip needed to have a structure of:
":phone_id/odk/instances/*.xml"
now, any recognized XML and any referenced jpg photos in the same directory will be processed.

Uses a python iterator to (hopefully) save memory and finish more quickly.