X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/1a949f7c97dc2f34c135f5cdf088df2927d3d652..4f54d1c4dfe4b2b6c62601212c27c175fde3d5b0:/forum/settings/upload.py diff --git a/forum/settings/upload.py b/forum/settings/upload.py index 95a3ca1..3c1fd24 100644 --- a/forum/settings/upload.py +++ b/forum/settings/upload.py @@ -1,25 +1,17 @@ -import os.path -from base import Setting, SettingSet -from django.utils.translation import ugettext_lazy as _ - -UPLOAD_SET = SettingSet('paths', _('File upload settings'), _(""" -File uploads related settings. -"""), 600) - -UPFILES_FOLDER = Setting('UPFILES_FOLDER', os.path.join(os.path.dirname(os.path.dirname(__file__)),'upfiles'), UPLOAD_SET, dict( -label = _("Uploaded files folder"), -help_text = _(""" -The filesystem path where uploaded files will be stored. Please note that this folder must exist. -"""))) - -UPFILES_ALIAS = Setting('UPFILES_ALIAS', '/upfiles/', UPLOAD_SET, dict( -label = _("Uploaded files alias"), -help_text = _(""" -The url alias for uploaded files. Notice that if you change this setting, you'll need to restart your site. -"""))) - -ALLOW_MAX_FILE_SIZE = Setting('ALLOW_MAX_FILE_SIZE', 2.5, UPLOAD_SET, dict( -label = _("Max file size"), -help_text = _(""" -The maximum allowed file size for uploads in mb. -"""))) \ No newline at end of file +import os.path +from base import Setting, SettingSet +from django.utils.translation import ugettext_lazy as _ + +UPLOAD_SET = SettingSet('paths', _('File upload settings'), _("File uploads related settings."), 600) + +UPFILES_FOLDER = Setting('UPFILES_FOLDER', os.path.join(os.path.dirname(os.path.dirname(__file__)),'upfiles'), UPLOAD_SET, dict( +label = _("Uploaded files folder"), +help_text = _("The filesystem path where uploaded files will be stored. Please note that this folder must exist."))) + +UPFILES_ALIAS = Setting('UPFILES_ALIAS', '/upfiles/', UPLOAD_SET, dict( +label = _("Uploaded files alias"), +help_text = _("The url alias for uploaded files. Notice that if you change this setting, you'll need to restart your site."))) + +ALLOW_MAX_FILE_SIZE = Setting('ALLOW_MAX_FILE_SIZE', 2.5, UPLOAD_SET, dict( +label = _("Max file size"), +help_text = _("The maximum allowed file size for uploads in mb."))) \ No newline at end of file