示例#1
0
class HistoryTaskForm(ProjectForm):
    task_id = IntegerField("task_id", [validators.DataRequired()])
示例#2
0
class HistoryNodeForm(ProjectForm):
    node_id = IntegerField("node_id", [validators.DataRequired()])
示例#3
0
class HandleForm(HistoryTaskForm, HistoryNodeForm):
    step_id = IntegerField("step_id", [validators.DataRequired()])
示例#4
0
class HistoryGetForm(ProjectForm):
    start = IntegerField("start", [validators.NumberRange(min = 0)])
    limit = IntegerField("limit", [validators.DataRequired()])
示例#5
0
class HistoryServerForm(ProjectForm):
    server_id = IntegerField("server_id", [validators.DataRequired()])
示例#6
0
class ProcedureGetForm(ProjectForm):
    procedure_id = IntegerField("procedure_id", [validators.DataRequired()])
示例#7
0
class ProcedureAddForm(ProjectForm):
    procedure = StringField("procedure", [validators.DataRequired()])
示例#8
0
class ProcedureSaveForm(ProjectForm):
    procedure_id = IntegerField("procedure_id", [validators.DataRequired()])
    procedure = StringField("procedure", [validators.DataRequired()])
示例#9
0
文件: forms.py 项目: uglyliu/pj-job
class LoginForm(Form):
    username = StringField("username", [validators.DataRequired()])
    password = StringField("password", [validators.DataRequired()])