Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Added license configration setting

  • Loading branch information...
commit 990f6134f7f6d17dfab9daeb63f07251a2788424 1 parent 4468a1e
Joar Wandborg authored
5 automgtic.ini
... ... @@ -1,5 +1,10 @@
1 1 # WARNING: Do not edit this file directly, copy it first to automgtic_local.ini
2 2 [automgtic]
  3 +# File extensions that should be uploaded
  4 +file_extensions = png, jpg
  5 +# Uncomment this line to set the media license to CC BY 3.0 for all the items
  6 +# you upload
  7 +#license = 'http://creativecommons.org/licenses/by/3.0/'
3 8
4 9 [mediagoblin]
5 10 client_id = add yours here
2  automgtic/__init__.py
@@ -79,7 +79,7 @@ def upload_if_not_exist(path, digest):
79 79 'file': open(path, 'rb'),
80 80 'title': os.path.split(path)[-1],
81 81 'description': '',
82   - 'license': '',
  82 + 'license': app_config['license'],
83 83 'tags': ''}
84 84
85 85 datagen, headers = multipart_encode(fields)
1  automgtic/config_spec.ini
... ... @@ -1,5 +1,6 @@
1 1 [automgtic]
2 2 file_extensions = string_list(default=list("png", "jpg"))
  3 +license = string(default='')
3 4
4 5 [mediagoblin]
5 6 client_id = string(default='')

0 comments on commit 990f613

Please sign in to comment.
Something went wrong with that request. Please try again.