[Zope3-dev] Usage of actions in zope.formlib ... was: Re: Add flexibility to zope.formlib.form.EditFormBase

Fred Drake fdrake at gmail.com
Wed May 9 14:06:48 EDT 2007


On 5/9/07, Maciej Wisniowski <maciej.wisniowski at coig.katowice.pl> wrote:
> class MyNewEditForm(EditForm):
>     actions = EditForm.actions
...
> I mean line:
>     actions = EditForm.actions

That's not good enough.  ;-)

Adding more actions at this point will affect EditForm as well.  Better to use

    actions = EditForm.actions.copy()


  -Fred

-- 
Fred L. Drake, Jr.    <fdrake at gmail.com>
"Chaos is the score upon which reality is written." --Henry Miller


More information about the Zope3-dev mailing list