diff options
author | Sebastian Spaeth <Sebastian@SSpaeth.de> | 2012-11-26 14:47:03 +0100 |
---|---|---|
committer | Sebastian Spaeth <Sebastian@SSpaeth.de> | 2012-11-30 14:31:43 +0100 |
commit | 8e5fae9b437afced1f8b55a44565c5032b8e7424 (patch) | |
tree | 8a4d9f8080e91743a3bbb23eb0c5c4786ee55757 /docs/source/siteadmin | |
parent | df1c497609fd47379d4a4bd36af4f3db2f722d3d (diff) | |
download | mediagoblin-8e5fae9b437afced1f8b55a44565c5032b8e7424.tar.lz mediagoblin-8e5fae9b437afced1f8b55a44565c5032b8e7424.tar.xz mediagoblin-8e5fae9b437afced1f8b55a44565c5032b8e7424.zip |
Improve mediagoblin.tools.licenses
"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...
Diffstat (limited to 'docs/source/siteadmin')
0 files changed, 0 insertions, 0 deletions