Re: zope.formlib's action decorator return Action() object, not the decorated function. Why?
Wichert Akkerman <[email protected]>
| Newsgroups | gmane.comp.web.zope.devel |
|---|---|
| Message-ID | <[email protected]> |
On Sep 16, 2012, at 07:28, Marius Gedminas <[email protected]> wrote: > On Fri, Sep 14, 2012 at 01:44:30PM +0200, Jan-Wijbrand Kolman wrote: >> After years and years of heavily using zope.formlib it suddenly struck >> me that the zope.formlib.form.action decorator returns an Action() >> object instead of the decorated function (this action object is also >> added to the form's actions sequence as a "side effect" of the decorator). >> >> I know wonder: Why? > > (I've no clue.) Another effect of this is probably that you can use sphinx's autodoc for actions which would be unfortunate. Wichert. _______________________________________________ Zope-Dev maillist - [email protected] https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )