[Zope3-Users] nextURL: add vs edit

Shaun Cutts shaun at cuttshome.net
Fri Feb 17 17:02:00 EST 2006


Ok -- 

Thanks Gary and Michael.

I've defined "changed" in my mixin, and it works:

    def changed( self ):
        self.request.response.redirect(self.nextURL())

And I can still use the same mixin to do redirect for both edit and add
forms, so I can't grumble about that.

I'm curious how this works, however, since EditView.changed() doesn't
call self.context.changed(). Who calls it?

Thanks again,
- Shaun

PS I will indeed use formlib eventually, but I want to get just the
workflow down for the prototype I'm writing at the moment.




More information about the Zope3-users mailing list