##// END OF EJS Templates
Move forms to a separate folder module with fields module
neko259 -
r1757:d84474c9 default
parent child Browse files
Show More
@@ -1,30 +1,28 b''
1 import hashlib
1 import hashlib
2 import logging
2 import re
3 import re
3 import time
4 import time
4 import logging
5
5
6 import pytz
6 import pytz
7
8 from django import forms
7 from django import forms
9 from django.core.files.uploadedfile import SimpleUploadedFile
8 from django.core.files.uploadedfile import SimpleUploadedFile
10 from django.core.exceptions import ObjectDoesNotExist
11 from django.core.files.uploadedfile import UploadedFile
9 from django.core.files.uploadedfile import UploadedFile
12 from django.forms.utils import ErrorList
10 from django.forms.utils import ErrorList
11 from django.utils import timezone
13 from django.utils.translation import ugettext_lazy as _, ungettext_lazy
12 from django.utils.translation import ugettext_lazy as _, ungettext_lazy
14 from django.utils import timezone
15
13
16 from boards.abstracts.settingsmanager import get_settings_manager
14 import boards.settings as board_settings
15 import neboard
17 from boards.abstracts.attachment_alias import get_image_by_alias
16 from boards.abstracts.attachment_alias import get_image_by_alias
17 from boards.abstracts.settingsmanager import get_settings_manager
18 from boards.forms.fields import UrlFileField
18 from boards.mdx_neboard import formatters
19 from boards.mdx_neboard import formatters
20 from boards.models import Tag
19 from boards.models.attachment.downloaders import download
21 from boards.models.attachment.downloaders import download
20 from boards.models.post import TITLE_MAX_LENGTH
22 from boards.models.post import TITLE_MAX_LENGTH
21 from boards.models import Tag, Post
22 from boards.utils import validate_file_size, get_file_mimetype, \
23 from boards.utils import validate_file_size, get_file_mimetype, \
23 FILE_EXTENSION_DELIMITER
24 FILE_EXTENSION_DELIMITER
24 from boards.abstracts.fields import UrlFileField
25 from neboard import settings
25 from neboard import settings
26 import boards.settings as board_settings
27 import neboard
28
26
29 POW_HASH_LENGTH = 16
27 POW_HASH_LENGTH = 16
30 POW_LIFE_MINUTES = 5
28 POW_LIFE_MINUTES = 5
1 NO CONTENT: file renamed from boards/abstracts/fields.py to boards/forms/fields.py
NO CONTENT: file renamed from boards/abstracts/fields.py to boards/forms/fields.py
General Comments 0
You need to be logged in to leave comments. Login now