<filename>forms.py
# -*- coding: utf-8 -*-
u"""
    This module contains the definitions of forms to be used in the application.
"""

from wtforms import Form
from wtforms.fields import FileField, IntegerField

__author__ = 'infante'


class SubtitleUploadForm(Form):
    u"""
        Implements the form used to upload a subtitles file with the desired time correction.
    """

    # file field to upload file
    subtitle_file = FileField(u'Subtitle File')
    # integer field to hold the desired time displacement
    adjustment = IntegerField(u'Time in seconds')

<filename>forms.py
# -*- coding: utf-8 -*-
u"""
    This module contains the definitions of forms to be used in the application.
"""

from wtforms import Form
from wtforms.fields import FileField, IntegerField

__author__ = 'infante'


class SubtitleUploadForm(Form):
    u"""
        Implements the form used to upload a subtitles file with the desired time correction.
    """

    # file field to upload file
    subtitle_file = FileField(u'Subtitle File')
    # integer field to hold the desired time displacement
    adjustment = IntegerField(u'Time in seconds')

# -*- coding: utf-8 -*- This module contains the definitions of forms to be used in the application. Implements the form used to upload a subtitles file with the desired time correction. # file field to upload file # integer field to hold the desired time displacement