Hi I've been upgrading my app from a4->a5 tonight and I've run into a
little trouble. I'm getting this message:

TypeError: login() got multiple values for keyword argument 'previous_url'

I have extended the login page to have an additional "Create login"
form. I get this error when this form's validation fails and the
error_handler page (login) is re-called.

This code worked on a4 -- does anyone have any pointers on what might
be wrong, or how to get this working on a5?

Here's the "add" controller code:

    @expose()
    @turbogears.validate(form=newuser_form)
    @turbogears.error_handler(login)
    def usercreate(self, user_name, email, zip, pass1, pass2,
            forward_url=None, previous_url=None, tg_errors=None):
        hub.begin()
        u = UserAcct(user_name=user_name, email_address=email, display_name="",
            password=pass1)
        hub.commit()
        turbogears.flash("Account created!")
        identity.current_provider.validate_identity(user_name, pass1,
            identity.current.visit_key)
        redirect(turbogears.url("/"))

Thanks -- Andy

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

Reply via email to