[Catalyst] Two ways to create record

2008-01-13 Thread Alex Povolotsky
Hello! In Tutorial (BTW, CRUD section of tutorial lacks U completely), I've seen this way of filling in the record: my $book = $c-model('GalleryDB::Gallery')-new({}); $book-populate_from_widget($result); In InstantCRUD data is filled in with my $item = $result-save_to_db(); Can

Re: [Catalyst] Re-enable digest mode?

2008-01-13 Thread Matt S Trout
On Fri, Jan 11, 2008 at 03:43:25PM -0500, Lampert, Hugh wrote: Well, I respectfully submit that the purpose of a digest is so people can archive the mailing list themselves in their e-mail systems, one digest per day. An RSS feed does not easily allow this, and for a busy list like this

Re: [Catalyst] Two ways to create record

2008-01-13 Thread Matt S Trout
On Sun, Jan 13, 2008 at 04:47:38PM +0300, Alex Povolotsky wrote: Hello! In Tutorial (BTW, CRUD section of tutorial lacks U completely), I've seen this way of filling in the record: my $book = $c-model('GalleryDB::Gallery')-new({}); $book-populate_from_widget($result); which sets

Re: [Catalyst] Two ways to create record

2008-01-13 Thread Alex Povolotsky
Matt S Trout wrote: On Sun, Jan 13, 2008 at 04:47:38PM +0300, Alex Povolotsky wrote: Hello! In Tutorial (BTW, CRUD section of tutorial lacks U completely), I've seen this way of filling in the record: my $book = $c-model('GalleryDB::Gallery')-new({});

[Catalyst] component's new() call browser dependent

2008-01-13 Thread Juan Camacho
I found something quite strange. When I use Firefox the model's new method is called for each request, but if I use IE it doesn't. This is under mod_perl. Is this behavior by design? Have I missed some documentation on this? Thanks, Juan ___ List:

Re: [Catalyst] component's new() call browser dependent

2008-01-13 Thread Jonathan Rockway
On Sun, 2008-01-13 at 19:11 -0500, Juan Camacho wrote: I found something quite strange. When I use Firefox the model's new method is called for each request, but if I use IE it doesn't. This is under mod_perl. Is this behavior by design? Have I missed some documentation on this? Can you

Re: [Catalyst] component's new() call browser dependent

2008-01-13 Thread Juan Camacho
On Jan 13, 2008 7:17 PM, Jonathan Rockway [EMAIL PROTECTED] wrote: On Sun, 2008-01-13 at 19:11 -0500, Juan Camacho wrote: I found something quite strange. When I use Firefox the model's new method is called for each request, but if I use IE it doesn't. This is under mod_perl. Is this

Re: [Catalyst] process a restored request

2008-01-13 Thread Matt S Trout
On Fri, Jan 11, 2008 at 07:06:17PM +, Jonas Alves wrote: On Jan 11, 2008 6:27 PM, Matt S Trout [EMAIL PROTECTED] wrote: Don't try and serialize $c-req, just dump any POST data back out into hidden fields in the login form, don't change the URL, and have the login form processed in a

Re: [Catalyst] component's new() call browser dependent

2008-01-13 Thread Jonathan Rockway
On Sun, 2008-01-13 at 19:41 -0500, Juan Camacho wrote: Do you still need some code? Should new be called for every request or is there some intentional session caching going on? new is usually called at COMPONENT time, not ACCEPT_CONTEXT time. I'd like to see how you're using this code,