]> git.openstreetmap.org Git - osqa.git/blob - forum/settings/upload.py
we need to be able to take additional keyword arguments from the search manager
[osqa.git] / forum / settings / upload.py
1 import os.path\r
2 from base import Setting, SettingSet\r
3 from django.utils.translation import ugettext_lazy as _\r
4 \r
5 UPLOAD_SET = SettingSet('paths', _('File upload settings'), _("File uploads related settings."), 600)\r
6 \r
7 UPFILES_FOLDER = Setting('UPFILES_FOLDER', os.path.join(os.path.dirname(os.path.dirname(__file__)),'upfiles'), UPLOAD_SET, dict(\r
8 label = _("Uploaded files folder"),\r
9 help_text = _("The filesystem path where uploaded files will be stored. Please note that this folder must exist.")))\r
10 \r
11 UPFILES_ALIAS = Setting('UPFILES_ALIAS', '/upfiles/', UPLOAD_SET, dict(\r
12 label = _("Uploaded files alias"),\r
13 help_text = _("The url alias for uploaded files. Notice that if you change this setting, you'll need to restart your site.")))\r
14 \r
15 ALLOW_MAX_FILE_SIZE = Setting('ALLOW_MAX_FILE_SIZE', 2.5, UPLOAD_SET, dict(\r
16 label = _("Max file size"),\r
17 help_text = _("The maximum allowed file size for uploads in mb.")))