1
0
mirror of https://github.com/gryf/slack-backup.git synced 2025-12-17 11:30:25 +01:00

Added implementation for url_file_attachment option.

Using url_file_attachment user can specify if he like to change objects
like 'file_share' marked as external (in Slack servers point of view)
to attachments, so the only value would be remembered URL for the
"uploaded" document as an attachment. Or, treat it as is, and let the
slack-backup to produce file which contain the URLs and corresponding
local file names for such files.
This commit is contained in:
2018-07-16 08:33:43 +02:00
parent 71355b1c4a
commit db8527e9af
8 changed files with 490 additions and 25 deletions

View File

@@ -13,11 +13,11 @@ class Config(object):
"""Configuration keeper"""
ints = ['verbose', 'quiet']
bools = ['url_file_to_attachement']
bools = ['url_file_to_attachment']
sections = {'common': ['channels', 'database', 'quiet', 'verbose',
'url_file_to_attachement'],
'fetch': ['user', 'password', 'team', 'token'],
sections = {'common': ['channels', 'database', 'quiet', 'verbose'],
'fetch': ['user', 'password', 'team', 'token',
'url_file_to_attachment'],
'generate': ['output', 'format', 'theme']}
def __init__(self):
@@ -38,7 +38,7 @@ class Config(object):
'output': None,
'format': None,
'theme': None,
'url_file_to_attachement': False}
'url_file_to_attachment': False}
# This message supposed to be displayed in INFO level. During the time
# of running the code where it should be displayed there is no
# complete information about logging level. Displaying message is