On Feb 13, 2008, at 4:49 PM, Carl Franks wrote:

On 13/02/2008, Carl Franks <[EMAIL PROTECTED]> 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


_______________________________________________
HTML-FormFu mailing list
[email protected]
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu

Reply via email to