[cc-commits] [git]cc.license: Python API for selecting licenses and retrieving metadata (branch i18noverhaul) updated. bc5386cad526bb7fa0984352d17ee4f370fa0536

Gitosis User webmaster at creativecommons.org
Thu Oct 13 16:35:07 EDT 2011


The branch, i18noverhaul has been updated
       via  bc5386cad526bb7fa0984352d17ee4f370fa0536 (commit)
      from  35d407ca98f2f5a08de3c0dd71b09e1cd71879c9 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit bc5386cad526bb7fa0984352d17ee4f370fa0536
Author: Christopher Allan Webber <cwebber at dustycloud.org>
Date:   Thu Oct 13 15:33:35 2011 -0500

    Updating this other COUNTRY_MAP mapper

-----------------------------------------------------------------------

Summary of changes (followed by patch):
 cc/license/formatters/classes.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/cc/license/formatters/classes.py b/cc/license/formatters/classes.py
index 07f5192..a88cf7e 100644
--- a/cc/license/formatters/classes.py
+++ b/cc/license/formatters/classes.py
@@ -22,6 +22,7 @@ from cc.license import util
 from cc.i18n.gettext_i18n import ugettext_for_locale
 from cc.i18n.gettext_i18n import fake_ugettext as _
 from cc.i18n.util import locale_to_lower_lower
+from cc.i18n import mappers
 
 import jinja2
 
@@ -274,7 +275,7 @@ class CC0HTMLFormatter(HTMLFormatter):
         work_jurisdiction = work_dict.get('work_jurisdiction')
         country_name = None
         if work_jurisdiction not in ('', '-', None, False):
-            country_name = gettext(util.CODE_COUNTRY_MAP[work_jurisdiction])
+            country_name = gettext(mappers.COUNTRY_MAP[work_jurisdiction])
 
         rendered_template = template.render(
             {"gettext": gettext,


hooks/post-receive
-- 
cc.license: Python API for selecting licenses and retrieving metadata


More information about the cc-commits mailing list