Commits

al...@alex3.resheteva.lan  committed 1396e96

nothing special

  • Participants
  • Parent commits 8f7c813

Comments (0)

Files changed (5)

File tgext.registration2.egg-info/PKG-INFO

 Metadata-Version: 1.0
 Name: tgext.registration2
-Version: 0.5.1dev-20090625
+Version: 0.5.1dev-20090701
 Summary: set of controller entries to handle users' (self)registration in turbogears 2
 Home-page: http://resheteva.org.il/packages
 Author: alex bodnaru

File tgext.registration2.egg-info/requires.txt

 setuptools
 genshi
 tw.output
+tw.recaptcha
 
 [turbomail]
 TurboMail >= 2.0

File tgext/__init__.pyc

Binary file modified.

File tgext/registration2/controllers.py

         
     @expose(template='tgext.registration2.templates.create')
     @validate(form=new_user_form, error_handler=new)
-    def create(self, user_name, email, email2, display_name, password1, password2, **kw):
+    def create(self, user_name, email, email2, display_name, password1, password2, 
+               recaptcha_response_field, **kw):
         if identity.not_anonymous():
             redirect('./edit_user')
         key = self.validation_hash(email + display_name + password1)

File tgext/registration2/widgets.py

     display_name = UnicodeString(not_empty=True, strip=True, max=255)
     password1 = UnicodeString(not_empty=True, max=40)
     password2 = UnicodeString(not_empty=True, max=40)
-    recaptcha_response_field = ReCaptchaValidator(config.registration_config.recaptcha.private_key, 
-                                                  request.remote_addr),
     chained_validators = [FieldsMatch('password1', 'password2'),
                           FieldsMatch('email', 'email2'),
+    ReCaptchaValidator(config.registration_config.recaptcha.private_key, 
+                                                  request.remote_addr),
                          ]
     
 class ExistingUserSchema(TGSchema):