aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/forms.py
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel@gmail.com>2013-11-24 19:34:53 +0100
committerCédric Bonhomme <kimble.mandel@gmail.com>2013-11-24 19:34:53 +0100
commit23365c4bb813ff297ebf35da1b7de1b2b1add604 (patch)
tree9828069273a11734d48ad2889146911f31c5209b /pyaggr3g470r/forms.py
parentUpdated README. (diff)
downloadnewspipe-23365c4bb813ff297ebf35da1b7de1b2b1add604.tar.gz
newspipe-23365c4bb813ff297ebf35da1b7de1b2b1add604.tar.bz2
newspipe-23365c4bb813ff297ebf35da1b7de1b2b1add604.zip
It is now possible to update information about a user (first name, last name, email and password).
Diffstat (limited to 'pyaggr3g470r/forms.py')
-rw-r--r--pyaggr3g470r/forms.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/pyaggr3g470r/forms.py b/pyaggr3g470r/forms.py
index 0aed7da6..0fcb0c63 100644
--- a/pyaggr3g470r/forms.py
+++ b/pyaggr3g470r/forms.py
@@ -64,4 +64,19 @@ class AddFeedForm(Form):
def validate(self):
if not Form.validate(self):
return False
+ return True
+
+class ProfileForm(Form):
+ firstname = TextField("First name", [validators.Required("Please enter your first name.")])
+ lastname = TextField("Last name", [validators.Required("Please enter your last name.")])
+ email = TextField("Email", [validators.Required("Please enter your email.")])
+ password = TextField("Password", [validators.Required("Please enter your password.")])
+ submit = SubmitField("Save")
+
+ def __init__(self, *args, **kwargs):
+ Form.__init__(self, *args, **kwargs)
+
+ def validate(self):
+ if not Form.validate(self):
+ return False
return True \ No newline at end of file
bgstack15