[Zope3-dev] Backard incompatible change to zope.formlib

Jim Fulton jim at zope.com
Thu Jul 14 17:40:42 EDT 2005


Currently, if you have an action defined with a label that
is not an identifier:

   @form.action(_("Return for changes"))
   def return_for_changes(form, action):
      ...

The submit button name will be converted to hex
(e.g. form.actions.52657475726e20666f72206368616e676573).

I propose that we use the action handler name instead
(e.g. form.actions.return_for_changes).

This is likely to affect tests that involve sample generated forms
or form input.  In the long run, it will make these tests more readable.

Any objections?

Jim

-- 
Jim Fulton           mailto:jim at zope.com       Python Powered!
CTO                  (540) 361-1714            http://www.python.org
Zope Corporation     http://www.zope.com       http://www.zope.org


More information about the Zope3-dev mailing list