Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Apply `pyupgrade --py3-plus` to remove Python 2 compatibility code. | Ben Sturmfels | 2021-03-05 | 1 | -1/+1 |
| | |||||
* | Fix consistency in license list. | Ben Sturmfels | 2020-05-11 | 1 | -1/+1 |
| | |||||
* | Add Creative Commons 4.0 licenses [#955] | Dpg | 2018-05-24 | 1 | -10/+27 |
| | | | | Add CC version 4.0 licenses to SORTED_LICENSES. | ||||
* | Implement licenses.get_license_by_url | Sebastian Spaeth | 2012-11-30 | 1 | -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.licenses | Sebastian Spaeth | 2012-11-30 | 1 | -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 here | Christopher Allan Webber | 2012-02-02 | 1 | -1/+1 |
| | |||||
* | Canonical license URIS for CC stuff should have a trailing slash. | Christopher Allan Webber | 2012-01-21 | 1 | -5/+5 |
| | |||||
* | Show the license list in sorted form | Christopher Allan Webber | 2012-01-21 | 1 | -1/+1 |
| | |||||
* | Provided a SORTED_SUPPORTED_LICENSES (but keep the old unsorted dict!) | Christopher Allan Webber | 2012-01-21 | 1 | -38/+31 |
| | |||||
* | Added new files | Aaron Williamson | 2012-01-17 | 1 | -0/+62 |