Re: [Zope3-dev] Add flexibility to zope.formlib.form.EditFormBase

2007-05-05 Thread Marius Gedminas
On Fri, May 04, 2007 at 09:26:17AM +0200, Michael Howitz wrote: > I'm using zope.formlib.form.EditFormBase and want to normalize data > before saving it. > Saving is done by the applyChanges function which is called from > handle_edit_action. > The problem is that handle_edit_action is an actio

Re: [Zope3-dev] Add flexibility to zope.formlib.form.EditFormBase

2007-05-04 Thread Maciej Wisniowski
> > No, my suggestion does not break any existing code because it only > adds a new method to EditFormBase which gets called from > handle_edit_action instead of the function. This new method then calls > the applyChanges function. So you are able to overwrite the new method > in a subclass to nor

Re: [Zope3-dev] Add flexibility to zope.formlib.form.EditFormBase

2007-05-04 Thread Michael Howitz
Am 04.05.2007 um 10:28 schrieb Maciej Wisniowski: [...] What code you have to copy-paste from formlib when you add your own handle_edit_action? I think it is common to do something like: from zope.formlib import form form.applyChanges(...) The method EditFormBase.handle_edit_action contains co

Re: [Zope3-dev] Add flexibility to zope.formlib.form.EditFormBase

2007-05-04 Thread Maciej Wisniowski
> I'm using zope.formlib.form.EditFormBase and want to normalize data > before saving it. > Saving is done by the applyChanges function which is called from > handle_edit_action. > The problem is that handle_edit_action is an action, so I can't easily > subclass and do a super call to handle_edit_

[Zope3-dev] Add flexibility to zope.formlib.form.EditFormBase

2007-05-04 Thread Michael Howitz
Hi, I'm using zope.formlib.form.EditFormBase and want to normalize data before saving it. Saving is done by the applyChanges function which is called from handle_edit_action. The problem is that handle_edit_action is an action, so I can't easily subclass and do a super call to handle_edit_a