Changeset - f3028c76c2b0
[Not reviewed]
master
0 1 0
Goblin Refuge (GoblinRefuge) - 10 months ago 2018-09-15 17:28:17
mediagoblin@goblinrefuge.com
Update licenses to match upstream
1 file changed with 23 insertions and 4 deletions:
0 comments (0 inline, 0 general)
mediagoblin/tools/licenses.py
Show inline comments
...
 
@@ -20,6 +20,8 @@ License = namedtuple("License", ["abbreviation", "name", "uri"])
 

	
 
SORTED_LICENSES = [
 
    License("All rights reserved", "No license specified", ""),
 
    License("CC BY 4.0", "Creative Commons Attribution 4.0 International",
 
            "https://creativecommons.org/licenses/by/4.0/"),
 
    License("CC BY-SA 4.0",
 
            "Creative Commons Attribution-ShareAlike 4.0 International",
 
            "https://creativecommons.org/licenses/by-sa/4.0/"),
...
 
@@ -35,12 +37,29 @@ SORTED_LICENSES = [
 
    License("CC BY-NC-ND 4.0",
 
            "Creative Commons Attribution-NonCommercial-NoDerivs 4.0 International",
 
            "https://creativecommons.org/licenses/by-nc-nd/4.0/"),
 
    License("CC BY 3.0", "Creative Commons Attribution Unported 3.0",
 
           "https://creativecommons.org/licenses/by/3.0/"),
 
    License("CC BY-SA 3.0",
 
           "Creative Commons Attribution-ShareAlike 3.0 Unported",
 
           "https://creativecommons.org/licenses/by-sa/3.0/"),
 
    License("CC BY-ND 3.0",
 
           "Creative Commons Attribution-NoDerivs 3.0 Unported",
 
           "https://creativecommons.org/licenses/by-nd/3.0/"),
 
    License("CC BY-NC 3.0",
 
          "Creative Commons Attribution-NonCommercial 3.0 Unported",
 
          "https://creativecommons.org/licenses/by-nc/3.0/"),
 
    License("CC BY-NC-SA 3.0",
 
           "Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported",
 
           "https://creativecommons.org/licenses/by-nc-sa/3.0/"),
 
    License("CC BY-NC-ND 3.0",
 
           "Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported",
 
           "https://creativecommons.org/licenses/by-nc-nd/3.0/"),
 
    License("CC0 1.0",
 
            "Creative Commons CC0 1.0 Universal",
 
            "https://creativecommons.org/publicdomain/zero/1.0/"),
 
           "Creative Commons CC0 1.0 Universal",
 
           "https://creativecommons.org/publicdomain/zero/1.0/"),
 
    License("Public Domain","Public Domain",
 
            "https://creativecommons.org/publicdomain/mark/1.0/"),
 
]
 
           "https://creativecommons.org/publicdomain/mark/1.0/"),
 
    ]
 

	
 
# dict {uri: License,...} to enable fast license lookup by uri. Ideally,
 
# we'd want to use an OrderedDict (python 2.7+) here to avoid having the
0 comments (0 inline, 0 general)