aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/tools/licenses.py
Commit message (Collapse)AuthorAgeFilesLines
* Apply `pyupgrade --py3-plus` to remove Python 2 compatibility code.Ben Sturmfels2021-03-051-1/+1
|
* Fix consistency in license list.Ben Sturmfels2020-05-111-1/+1
|
* Add Creative Commons 4.0 licenses [#955]Dpg2018-05-241-10/+27
| | | | Add CC version 4.0 licenses to SORTED_LICENSES.
* Implement licenses.get_license_by_urlSebastian Spaeth2012-11-301-0/+10
| | | | | | | | | Rather than exploding in the user's face (for example if we custom-configure licenses in our MG instance, and there are still media with now "unknown" licenses in the db), simply return a License object as a fallback, where all attributes are set to the URL we were handed. Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
* Improve mediagoblin.tools.licensesSebastian Spaeth2012-11-301-34/+38
| | | | | | | | | "Objectify" our licenses to have .uri, .abbreviation, .name attributes that we can pass into the templates and use there. namedtuples are a good poor man's choice to make a License a class. (a named tuple really) Document and optimize licenses_as_choices(), it is a one-liner really. No need for verbose appends here...
* It's 2012 all up in hereChristopher Allan Webber2012-02-021-1/+1
|
* Canonical license URIS for CC stuff should have a trailing slash.Christopher Allan Webber2012-01-211-5/+5
|
* Show the license list in sorted formChristopher Allan Webber2012-01-211-1/+1
|
* Provided a SORTED_SUPPORTED_LICENSES (but keep the old unsorted dict!)Christopher Allan Webber2012-01-211-38/+31
|
* Added new filesAaron Williamson2012-01-171-0/+62