edx/edx-platform — pull request #4976 by wedaly (2014-08-26 17:44:36+00:00)
Title: Embargo based on country code in the user's profile.

[ECOM-128](https://openedx.atlassian.net/browse/ECOM-128): Add Country Drop-down and Block Embargoed Countries

Some notes:
* It turns out that @antoviaque already added "country" to the registration form, and it can be turned on with a simple configuration change.

* Performance is a concern for these changes, because we have to check the user's profile and because I've generalized the checking logic using partial functions. I'm caching the results, but I still want to run a perf test before merging this.

* I've taken the easy way out with the error message by simply deleting the reference to "IP address". See the changes in "embargo.html".

Suggested reviewers:
@flowerhack and @dianakhuang for code changes