Commits

Francois Dion  committed 8e0c4e6

pep8 compliance

  • Participants
  • Parent commits 4c58ff6

Comments (0)

Files changed (1)

File webpy/forms/fo1.py

     def __init__(self):
         self.render = web.template.render('templates')
 
-        vpass = form.regexp(r".{3,20}$", 
-                    "must be between 3 and 20 characters")
+        vpass = form.regexp(r".{3,20}$",
+                            "must be between 3 and 20 characters")
         vemail = form.regexp(r"[^@]+@[^@]+\.[^@]+",
-                     "must be a valid email address")
+                             "must be a valid email address")
         self.register_form = form.Form(
             form.Textbox("username", description="Username"),
             form.Textbox("email", vemail, description="E-Mail"),
             form.Password("password", vpass, description="Password"),
             form.Password("password2", description="Repeat password"),
             form.Button("submit", type="submit", description="Register"),
-                validators = [
-                    form.Validator("Passwords did't match", 
-                        lambda i: i.password == i.password2)
-                ]
-
-            )
+            validators=[
+                form.Validator("Passwords did't match",
+                               lambda i: i.password == i.password2)
+            ]
+        )
 
     def GET(self):
         # do $:f.render() in the template