On 31 mai, 23:32, Alberto Valverde <[EMAIL PROTECTED]> wrote:
> On May 31, 2007, at 7:17 PM, aspineux wrote:
> What version of TG are you using? deepcopy is no longer used to copy
> Schemas since rev. 2954 (post 1.0.1, pre 1.0.2)
>
> Could you try that in 1.0.2.2 see if works?

Yes 1.0.2.2 works,  the problem has disappeared.
Thanks.

This helped me to wrap a method controller into a kind of form
validator,
more in another post

class ....

   def validate_domain_password_question(password, answer,
registration_code):
        .......
        if answer!=valid_answer:
            raise tgx.InvalidField('Bad answer', 'answer')
        if registration_code!=valid_registration_code:
            raise tgx.InvalidField('Bad registration code',
'registration_code')


    @turbogears.expose(template=".templates.password")
    @validate(form=domain_password_question_form,
 
validators=tgx.ValidatorFunctionConverter(validate_domain_password_question))
    @error_handler(domain_password_question)
    def domain_password_question_reset(self, password, **kwargs):
        self.reset_password(password)
        return "Password successfully reset"

Alain



--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to