On 18/02/2008, Brian Cassidy <[EMAIL PROTECTED]> wrote: > Moritz Onken wrote: > > I have no idea how Carls plugin feature works, but maybe we can plug it > > in there > > FYI, i tried a quick stab at the idea of a DateTime::Format::Natural > plugin -- but I can't seem to override existing methods from the Date > element. I can add in a post_process() method, but by then it's too late. > > Carl -- is this a bug with how the plugins work, or are you not allowed > to override methods?
plugins aren't added to @ISA, so you can't override methods. It currently supports: process() - which is called at the start of $form->process() post_process() - which is called before $form->process() returns render() - which is called at the start of $form->render() post_render() - which is called before $form->render returns. It also supports adding plugins to single elements, rather than just the form (of course, for each plugin, it will usually only make sense to add it to either the form, or an element). Carl _______________________________________________ HTML-FormFu mailing list [email protected] http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu
