[Zope-CMF] Form validation

Florent Guillaume fg@nuxeo.com
21 Feb 2003 19:25:21 +0100


On Fri, 2003-02-21 at 19:08, Alan Runyan wrote:
> I am very interested in how others have approached form validation
> and decoupling the navigation targets from the xxx_edit scripts.  I
> have spoken to GDavis about portal_form (which no one likes)
> and he has come up with a really brilliant approach to implement
> for Plone 1.1 (I hope ;-) but it extended the ActionsTool.

I'd put all the navigation targets as additional attributes of the Type
itself. Which either requires extending a bit the ActionsTool, or simply
use not-visible pseudo-actions à la
  id: edit_target
  action: mytype_edit
and some logic to automatically go to indirect through edit_target,
for instance
  <form action="portal_form/action_target?target=edit">
or even
  <form tal:attributes="action here/portal_form/action_target/edit">
or something...

Florent

-- 
Florent Guillaume, Nuxeo (Paris, France)
+33 1 40 33 79 87  http://nuxeo.com  mailto:fg@nuxeo.com