Skip to content

Instantly share code, notes, and snippets.

@salexkidd
Created February 19, 2015 04:02
Show Gist options
  • Save salexkidd/19cb1f70be96d24d7d60 to your computer and use it in GitHub Desktop.
Save salexkidd/19cb1f70be96d24d7d60 to your computer and use it in GitHub Desktop.
import flask_wtf↲
from wtforms import validators, StringField↲
class SlackForm(flask_wtf.Form):↲
trigger_word = StringField(u'trigger_word', [validators.required(), validators.length(max=10)])↲
text = StringField(u'trigger_word', [validators.required()])↲
user_name = StringField(u'user_name', [validators.required()])↲
token = StringField(u'token', [validators.required()])↲
form_obj = SlackForm(request.form)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment