Smart settings: Remove the 'is_path' argument
Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
This commit is contained in:
@@ -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')
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user