Kenneth Love avatar Kenneth Love committed 9342c89

renamed form to be better named.

Comments (0)

Files changed (1)

     key_value = TextField('Value', validators=[Required()])
     key_ttl = IntegerField('TTL')
 
-class SetForm(Form):
+class ListSetForm(Form):
     """
-    Form for creating a new set
-    """
-    key_name = TextField('Key', validators=[Required()])
-    member = TextField('Member', validators=[Required()])
-    key_ttl = IntegerField('TTL (in seconds)')
-
-class ListForm(Form):
-    """
-    Form for creating a new list
+    Form for creating a new set or list
     """
     key_name = TextField('Key', validators=[Required()])
     member = TextField('Member', validators=[Required()])
     """
     View for creating a new set/member
     """
-    form = SetForm(request.form or None)
+    form = ListSetForm(request.form or None)
     if form.validate_on_submit():
         key = request.form['key_name']
         ttl = int(request.form['key_ttl'])
     """
     View for creating a new list with members.
     """
-    form = ListForm(request.form or None)
+    form = ListSetForm(request.form or None)
     if form.validate_on_submit():
         key = request.form['key_name']
         ttl = int(request.form['key_ttl'])
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.