I really thought I knew how to do this, but now I can't get it to work
and I'm really confused.
I have a formlib EditForm, with an action like this:
@form.action("Cancel", validator=lambda *args, **kwargs: True)
def handle_cancel_action(self, action, data):
nextURL = self.nextURL()
However, I still get validation errors when I click Cancel. I also tried
a validator to return None, and no validator at all, and
"validator=None", they all have the same effect.
Is there a proper/easy way of doing this?
Zope3-users mailing list