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

Marius Gedminas mgedmin at b4net.lt
Sat May 5 14:07:07 EDT 2007


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 action, so I can't  
> easily subclass and do a super call to handle_edit_action.

You can, but there's a trick to it---call handle_edit_action.success()
instead of calling handle_edit_action directly.

Marius Gedminas
-- 
Remember the... the... uhh.....
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mail.zope.org/pipermail/zope3-dev/attachments/20070505/779f8767/attachment.bin


More information about the Zope3-dev mailing list