[Zope3-Users] Re: Multiple actions per button in formlib forms?

Bjorn Tillenius bjorn.tillenius at gmail.com
Fri Sep 15 03:03:32 EDT 2006


On Thu, Sep 14, 2006 at 10:21:34PM +0200, Martijn Pieters wrote:
> On 9/14/06, Martin Aspeli <optilude at gmx.net> wrote:
> >Stefan Fink wrote:
> >> Error object: 'Action' object is not callable
> >
> >I wonder if this has to do with the @form.action... decorator on
> >handle_edit_acion? Try to take it off and/or replicate the code of the
> >edit action itself.
> 
> No, all the decorator does is add an Action object to the class
> attribute 'actions' (which it creates if it doesn't yet exist).

This is not true. The decorator also returns the action, meaning that
self.handle_edit_action will be an Action, not a method.

Regards,

Bjorn


More information about the Zope3-users mailing list