Permalink
Browse files

Added license configration setting

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

0 comments on commit 990f613

Please sign in to comment.