[html-formfu] Question about DBIC-integration
Andreas Marienborg
omega at palle.net
Wed Feb 13 16:14:46 GMT 2008
On Feb 13, 2008, at 4:49 PM, Carl Franks wrote:
> On 13/02/2008, Carl Franks <fireartist at gmail.com> wrote:
>
>> I've also created a new dist at trunk/HTML-FormFu-Catalyst/
>> which contains a Catalyst::StashUserID plugin - which hopefully will
>> work ... [snip]
>
> And I realised after sending the mail, that I had un-commited changes,
> so it wasn't working - fixed now.
I get "can't locate pre_process via package
"HTML::FormFu::Plugin::Catalyst::StashUserID" at /Users/andreas/
Projects/opensource/html-formfu-trunk/HTML-FormFu/lib/HTML/FormFu.pm
line 848."
if I add an empty sub I get
[error] Caught exception in Startsiden::Bookmarks::Controller::JSON-
>edit_fill_form "Can't locate object method "pre_render" via package
"HTML::FormFu::Plugin::Catalyst::StashUserID" at /Users/andreas/
Projects/opensource/html-formfu-trunk/HTML-FormFu/lib/HTML/FormFu.pm
line 848."
if I also add that, it works.
I want to expand process to support specified id_method and object-
traversal based on it.
what I propose is
plugins:
- type: 'Catalyst::StashUserID'
id_method: obj.id
results in process in $c->user->obj->id being called.
does that sound reasonable? what about the two missing methods. I'll
see about adding a boilerplate Makefile.PL as well, as I need that to
build it for production :)
- andreas
More information about the HTML-FormFu
mailing list