Skip to content

Commit

Permalink
Added license configration setting
Browse files Browse the repository at this point in the history
  • Loading branch information
joar committed Sep 24, 2012
1 parent 4468a1e commit 990f613
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions automgtic.ini
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion automgtic/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions automgtic/config_spec.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[automgtic]
file_extensions = string_list(default=list("png", "jpg"))
license = string(default='')

[mediagoblin]
client_id = string(default='')
Expand Down

0 comments on commit 990f613

Please sign in to comment.