Commits

Anonymous committed 9fe505c

changed label attrs to label_text,
probably required only in later tw.

  • Participants
  • Parent commits 8707070

Comments (0)

Files changed (2)

tgext.registration2.egg-info/PKG-INFO

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

tgext/registration2/widgets.py

 class NewUserFields(WidgetsList):
     
     user_name = TextField('user_name',
-                    label=_("User Name"),
+                    label_text=_("User Name"),
                     help_text=_("A short name that you will use to log in."))
                     
     email = TextField('email',
-                    label=_("Email"),
+                    label_text=_("Email"),
                     help_text=_("Your email address (this will be validated)."))
                     
     email2 = TextField('email2',
-                    label=_("Email (again)"),
+                    label_text=_("Email (again)"),
                     help_text=_("Your email address again, please."))
     
     display_name = TextField('display_name',
-                    label=_("Display Name"),
+                    label_text=_("Display Name"),
                     help_text=_("A longer user name that others will see."))
                     
     password1 = PasswordField('password1',
-                    label=_("Password"),
+                    label_text=_("Password"),
                     help_text=_("Your password."))
                     
     password2 = PasswordField('password2',
-                    label= _("Password (again)"),
+                    label_text= _("Password (again)"),
                     help_text=_("Same password as above (the two should match)."))
                     
     if not config.reg_config.recaptcha.disabled:
         recaptcha_response_field = ReCaptchaWidget(
-                    label= _("reCAPTCHA"),
+                    label_text= _("reCAPTCHA"),
                     public_key=config.reg_config.recaptcha.public_key,
                     use_ssl=True,
                    )
 class ExistingUserFields(WidgetsList):
     
     user_name = OutputText('user_name',
-                    label=_("User Name") )
+                    label_text=_("User Name") )
                     
     email = TextField('email',
-                    label=_("Email"),
+                    label_text=_("Email"),
                     help_text=_("Your email address (this will be validated)."))
     
     display_name = TextField('display_name',
-                    label=_("Display Name"),
+                    label_text=_("Display Name"),
                     help_text=_("A longer user name that others will see."))
     
     old_password = PasswordField('old_password',
-                   label=_("Current password"),
+                   label_text=_("Current password"),
                    help_text=_("The current (old) password."))
 
     password1 = PasswordField('password1',
-                    label=_("New Password"),
+                    label_text=_("New Password"),
                     help_text=_("Your new password. (If you would like to change it)."))
 
     password2 = PasswordField('password2',
-                    label=_("New Password (again)"),
+                    label_text=_("New Password (again)"),
                     help_text=_("New password again (should match the input above)."))
                     
 class LostPasswordFields(WidgetsList):
     
     username = TextField('username',
-                    label=_('User Name'),
+                    label_text=_('User Name'),
                     validator=UnicodeString(not_empty=True, max=16, strip=True))
                     
     email = TextField('email',
-                    label=_('Email Address'),
+                    label_text=_('Email Address'),
                     validator=Email(not_empty=True, max=255))
                     
 class ValidPassword(FancyValidator):
 class DeleteUserFields(WidgetsList):
     
     password = PasswordField('password', 
-                    label=_('Password'),
+                    label_text=_('Password'),
                     validator=All(UnicodeString(not_empty=True, max=40),
                                              ValidPassword()))