On Feb 12, 2008 11:50 AM, lorax <[EMAIL PROTECTED]> wrote: > > Hi there.. I'm very new to TG and to Python.. Sorry if this is > obvious. I'm having a problem with a simple registration form I've > created with widgets. I've declared a PasswordField and when it comes > up in the form it seems to have a pre-entered value.. It shows six > asterisks by default. Is there a way to make them go away? Here is > my widget list: > > class registrationFields(widgets.WidgetsList): > userid = widgets.TextField(validator=validators.NotEmpty(), > label="User ID") > password = widgets.PasswordField(validator=validators.NotEmpty(), > label="Password")
I noticed that you are using a single password field? Shouldn't you be using 2 password fields and make sure they are both filled with the same values? Something like here: http://lucasmanual.com/mywiki/TurboGears#head-432f58816385331746fd299843a3f27feb897d19 > first_name = widgets.TextField(validator=validators.NotEmpty(), > label="First Name") > last_name = widgets.TextField(validator=validators.NotEmpty(), > label="Last Name") > > Here is how the password field gets generated in html: > > <th> > <label class="fieldlabel" > for="form_password">Password</label> > </th> > <td> > > <input class="passwordfield requiredfield" > type="password" id="form_password" name="password"> > </td> > > thanks. > > > > -- Vehicle Information Number. Check for Authentic VIN http://lucasmanual.com/vin TurboGears Documentation: http://www.lucasmanual.com/mywiki/TurboGears --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears?hl=en -~----------~----~----~----~------~----~------~--~---

