Перенесено из репозитария SpecialistOff.NET

This commit is contained in:
2018-02-26 09:59:54 +03:00
parent b7d2da4899
commit 5a727393c9
358 changed files with 46103 additions and 0 deletions

12
myapp/forms/__init__.py Normal file
View File

@@ -0,0 +1,12 @@
#!/usr/bin/env python3
# -*- coding: UTF-8 -*-
__author__ = 'RemiZOffAlex'
__copyright__ = '(c) RemiZOffAlex'
__license__ = 'MIT'
__email__ = 'remizoffalex@mail.ru'
from .users import LoginForm
from .page import PageEdit
__all__ = []

21
myapp/forms/page.py Normal file
View File

@@ -0,0 +1,21 @@
#!/usr/bin/env python3
# -*- coding: UTF-8 -*-
__author__ = 'RemiZOffAlex'
__copyright__ = '(c) RemiZOffAlex'
__license__ = 'MIT'
__email__ = 'remizoffalex@mail.ru'
__url__ = 'http://remizoffalex.ru'
from wtforms import (
Form,
BooleanField,
TextField,
PasswordField,
TextAreaField
)
class PageEdit(Form):
title = TextField('Заголовок')
text = TextAreaField('Текст')

14
myapp/forms/users.py Normal file
View File

@@ -0,0 +1,14 @@
#!/usr/bin/env python3
# -*- coding: UTF-8 -*-
__author__ = 'RemiZOffAlex'
__copyright__ = '(c) RemiZOffAlex'
__license__ = 'MIT'
__email__ = 'remizoffalex@mail.ru'
__url__ = 'http://remizoffalex.ru'
from wtforms import Form, BooleanField, TextField, PasswordField
class LoginForm(Form):
username = TextField('Имя пользователя')
password = PasswordField('Пароль')