unepwcmc/SAPI — pull request #30 by simaob (2013-03-21 18:06:57+00:00)
Title: Download quotas

- Updates database structure to allow for many-to-many relationship between trade restrictions and sources, terms, and purposes;
- Updates quotas and suspensions forms to manage the changed structure as described on the previous point;
- Adds an exports route and index page as well as a simple form that allows the selection of designation and of data type (for now only quotas in the data type and not filtering by designation yet);
- Adds export method to download quotas in CSV, for now without any type of filtering, it just downloads the whole set of quotas. It does simple caching based on the date of the most recently changed quota;
- Adds cleaned quotas file in the correct format to be imported;
- Adds import task to import quotas (run: rake import:cites_quotas[lib/assets/files/cleaned/quotas_utf8.csv] )