Re: [Catalyst] How to show SQL in apache

2007-06-13 Thread Matt S Trout
On Wed, Jun 13, 2007 at 12:27:26PM +0800, Cookie wrote: Thanks for your answer.But I think it already can not work although I add $schema-storage-debug(1); in my code.I agree with you the output of sql is in the STDOUT.I will find some way of configurating the apache to record the STDOUT. No

[Catalyst] Template creates objects via belongs_to autovivification

2007-06-13 Thread Matt Rosin
Hello, I discovered an interesting bug/feature, in which a template seems to be executing an SQL insert without that being intended or even visible in the code! I think it's worth explaining exactly what's going on so please pardon the length. In my

[Catalyst] fixed Catalyst::Component::ACCEPT_CONTEXT

2007-06-13 Thread Jonathan Rockway
Hi all, I released Catalyst-Component-ACCEPT_CONTEXT-0.03 this morning. It fixes a bug where the next ACCEPT_CONTEXT in the NEXT call chain wasn't passed the context, and it fixes the context destruction / memory cycle bug. It might still be broken :), so any feedback would be appreciated.

Re: [Catalyst] Template creates objects via belongs_to autovivification

2007-06-13 Thread Jason Kohles
On Jun 13, 2007, at 8:17 AM, Matt Rosin wrote: The thing is, then I decided to let admins add new transactions without an associated customer, to record in the database transactions that were made offline. Instead of assigning r.customer to the id of the company running the system I just

[Catalyst] Re: Template creates objects via belongs_to autovivification

2007-06-13 Thread Matt Rosin
Hi, thanks for your comment. But, 1. I use NOT_NULL so my program has less opportunity to ever crash :) no really I saw DBIxC crash in the past I'm pretty sure though cannot document now, perhaps the calling a method on a nonexistent object error... I would prefer it to say 0 than to crash.

Re: [Catalyst] Re: Template creates objects via belongs_to autovivification

2007-06-13 Thread Wade . Stuart
Matt Rosin [EMAIL PROTECTED] wrote on 06/13/2007 10:44:36 AM: Hi, thanks for your comment. But, 1. I use NOT_NULL so my program has less opportunity to ever crash :) no really I saw DBIxC crash in the past I'm pretty sure though cannot document now, perhaps the calling a method on a

Re: [Catalyst] DateTime in session- breaks during login/logout

2007-06-13 Thread Bill Moseley
On Wed, Jun 13, 2007 at 05:48:56PM +0200, Adam Bartosik wrote: I put DateTime object into session like this: use DateTime; $c-session-{dateo} = DateTime-now; Everything works ok, object is properly stored/retrevied until you login or logout. After logout ($c-logout) I get: undef

Re: [Catalyst] DateTime in session- breaks during login/logout

2007-06-13 Thread J. Shirley
On 6/13/07, Adam Bartosik [EMAIL PROTECTED] wrote: I put DateTime object into session like this: use DateTime; $c-session-{dateo} = DateTime-now; Everything works ok, object is properly stored/retrevied until you login or logout. After logout ($c-logout) I get: undef error - Invalid locale

[Catalyst] redirecting

2007-06-13 Thread Octavian Rasnita
Hi, I have tried to make the following redirection: $c-res-redirect($c-uri_for(/fr/thread?thread=$id_thread)); But it replaces ? with %3F and the request is: http://www.anrcluj.ro/fr/thread%3Fthread=1 How can I redirect to a URL that contains a question mark? Thank you. Octavian

Re: [Catalyst] redirecting

2007-06-13 Thread Jim Spath
$c-res-redirect($c-uri_for('/fr/thread', {thread = $id_thread})); Octavian Rasnita wrote: Hi, I have tried to make the following redirection: $c-res-redirect($c-uri_for(/fr/thread?thread=$id_thread)); But it replaces ? with %3F and the request is: http://www.anrcluj.ro/fr/thread%3Fthread=1

[Catalyst] Plugin::UploadProgress question

2007-06-13 Thread John Goulah
Is there a way to throttle the upload speed somehow so that I can tell if this is working properly through a local server? I get the progress bar but its hard to tell if its actually doing anything or not (looks like its sitting on 0%, but then again its going so fast its hard to tell). Thanks,

Re: [Catalyst] Plugin::UploadProgress question

2007-06-13 Thread Andy Grundman
On Jun 13, 2007, at 6:31 PM, John Goulah wrote: Is there a way to throttle the upload speed somehow so that I can tell if this is working properly through a local server? I get the progress bar but its hard to tell if its actually doing anything or not (looks like its sitting on 0%, but

Re: [Catalyst] Plugin::UploadProgress question

2007-06-13 Thread John Goulah
Oh ok, actually my problem came down to me trying to use Cache::Memcached plugin. Not sure why that wouldn't work but switching to Cache::FastMmap fixes it. Any ideas on this? By the way very nice plugin :) Thanks, John On 6/13/07, Andy Grundman [EMAIL PROTECTED] wrote: On Jun 13, 2007,

[Catalyst] Re: Re: Template creates objects via belongs_to

2007-06-13 Thread Matt Rosin
Hi! Thank you very much for your help. My response to your initial comments is Ahah. I see. Allow me to clarify the business logic as you recommend. 1. A customer may be associated with many transactions, or none at all. 2. A transaction can be associated with only a single customer, or no

[Catalyst] Re: Template creates objects via belongs_to (how to lay out relationships)

2007-06-13 Thread Wade . Stuart
Matt, This thread has crossed into a DBIC topic -- I am going to copy the DBIC list and continue the thread on that list (where it really belongs). Please join that list at http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class and follow the discussion. Kindest regards, -Wade