Commits

Kenneth Love committed 9342c89

renamed form to be better named.

  • Participants
  • Parent commits d8e9353

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'])