This is in the source of change_password

        form = form_factory(sql.SQLField(
            'old_password',
            'password',
            label=self.messages.old_password,
            requires=validators(
                     self.settings.table_user[passfield].requires,
                     IS_IN_DB(s, '%s.%s' % (usern, passfield),
 
error_message=self.messages.invalid_password))),
            sql.SQLField('new_password', 'password',
            label=self.messages.new_password,
            requires=self.settings.table_user[passfield].requires),
            sql.SQLField('new_password2', 'password',
            label=self.messages.verify_password,
            requires=[IS_EXPR('value==%s' % repr(pass1),
                              self.messages.mismatched_password)]))


As you can see all messages are in self.messages and you can access
them outside and change them via auth.messages.

On Jan 10, 3:11 am, Frank <thethinkbo...@gmail.com> wrote:
> thanks ,mr.freeze,
> the method you provide request customized form with SQLFORM.factory.
> what  about the default auth form just like login, register, password forms?
> those forms use {{=form}}. can we still use method "form.element" to change
> submit button to image button? I try it but failed.
>
> by the way, how to internationatinalize the change password form? I can do it 
> by
> using T method for other forms, but can not translate the change password 
> form.
> I'm sure there  should be better way.
>
> Frank
-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.


Reply via email to