Date: | Fri, 29 Jul 2005 09:10:57 -0500 |
From: | Mark Stosberg <mark [...] summersault.com> |
To: | Michael Graham <magog [...] the-wire.com> |
CC: | bug-cgi-application-plugin-fillinform [...] rt.cpan.org |
Subject: | Re: CAP::FiF feedback |
On Fri, Jul 29, 2005 at 02:08:58AM -0400, Michael Graham wrote:
Show quoted text
>
> $self->fill_form(\$html, [$user, $document, $group], %args );
Accepted. Conceptually.
But we do we force the list to be homogeneous ? I think we should
support a mix-and-match style for hashrefs and params fairly easily.
I'm cc'ing the BTS because I don't expect to get to it right away--- I still
need to write some tests for the code I have so far.
Show quoted text> I'm thinking that I may make a simple CDBI plugin that provides a
> 'param' method to any CDBI class. Together with CAP::FiF that would
> make a nice system for filling in forms with CDBI object data.
ok.
Ironically, straight DBI returns a row as hashref, which is lightweight
and works well. Adding a param() method to Class::DBI adds a lot to
abstraction to basically reproduce the hashref which is available some
layers down. Can't CDBI just return a hashref for a row if it needs to?
(But this point doesn't need to be discussed in the FiF bug queue).
Mark