[ckan-dev] Overwriting license.py

Mateusz Neumann M.Neumann at icm.edu.pl
Mon Apr 27 10:57:47 UTC 2015


Hi,

I am developing an extension for CKAN and I was asked to modify list of
available licenses.  The first thing I did was preparing licenses.json
file and configuring licenses_group_url parameter in the configuration
file.  I got example licenses from http://github.com/okfn/licenses. 
Licenses IDs we use are following:
    "id": "notspecified",
    "id": "CC0-1.0",
    "id": "CC-BY-4.0",
    "id": "CC-BY-SA-4.0",
    "id": "GPL-3.0",
    "id": "LGPL-3.0",
    "id": "AGPL-3.0",
    "id": "BSD-3-Clause",
    "id": "Apache-2.0",
    "id": "MIT",

OK, so my problem is the content of ckan/model/license.py, where there
are no classes declared for mentioned IDs.  And my question is how can
one modify license.py in CKAN extension.  Is it possible?

thanks a lot for any input

-- 
Mateusz

-------------- next part --------------
A non-text attachment was scrubbed...
Name: licenses.json
Type: application/json
Size: 3751 bytes
Desc: not available
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20150427/b58a7f79/attachment-0002.json>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 213 bytes
Desc: OpenPGP digital signature
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20150427/b58a7f79/attachment-0002.sig>


More information about the ckan-dev mailing list