Smart settings: Remove the 'is_path' argument

Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
This commit is contained in:
Roberto Rosario
2019-01-25 01:40:10 -04:00
parent 4937d8b776
commit 33e0e694e3
3 changed files with 4 additions and 7 deletions

View File

@@ -53,8 +53,7 @@ setting_production_error_log_path = namespace.add_setting(
global_name='COMMON_PRODUCTION_ERROR_LOG_PATH',
default=os.path.join(settings.MEDIA_ROOT, 'error.log'), help_text=_(
'Path to the logfile that will track errors during production.'
),
is_path=True
)
)
setting_project_title = namespace.add_setting(
global_name='COMMON_PROJECT_TITLE',
@@ -82,8 +81,7 @@ setting_temporary_directory = namespace.add_setting(
help_text=_(
'Temporary directory used site wide to store thumbnails, previews '
'and temporary files.'
),
is_path=True
)
)
namespace = Namespace(label=_('Django'), name='django')

View File

@@ -147,7 +147,7 @@ class Setting(object):
path=settings.CONFIGURATION_LAST_GOOD_FILEPATH
)
def __init__(self, namespace, global_name, default, help_text=None, is_path=False, post_edit_function=None):
def __init__(self, namespace, global_name, default, help_text=None, post_edit_function=None):
self.global_name = global_name
self.default = default
self.help_text = help_text

View File

@@ -15,8 +15,7 @@ setting_scanimage_path = namespace.add_setting(
global_name='SOURCES_SCANIMAGE_PATH', default=DEFAULT_SCANIMAGE_PATH,
help_text=_(
'File path to the scanimage program used to control image scanners.'
),
is_path=True
)
)
setting_staging_file_image_cache_storage = namespace.add_setting(
global_name=DEFAULT_STAGING_FILE_CACHE_STORAGE_BACKEND,