Re: [cgiapp] CGI::Application::Dispatch V 1.03 under Win2K

2005-03-14 Thread William McKee
On Fri, Mar 11, 2005 at 09:24:27AM -0500, Michael Peters wrote: It seems like Apache::Test is not working on your installation. Looking at the output from the test and you error log, it does not appear that it even reaches the C::A::Dispatch portions of the test. FWIW, I've been using A::T

Re: [cgiapp] Calling run mode without knowing name of sub

2005-03-14 Thread Michael Peters
Geoffrey G. Hankerson wrote: 2. Micael Peters suggests: my $runmode = $query-param('page'); my %rms = $self-run_modes(); return $self-$rms{$runmode}; This returns this error: syntax error at Supersite.pm line 694, near $rms{ syntax error at Supersite.pm line 696, near } Well, I guess I should have

Re: [cgiapp] CGI::Application Patch Proposal: bounce()

2005-03-14 Thread Michael Peters
Tony Fraser wrote: Attached is a patch that applies cleanly to CGI::Application version 3.31. The patch adds a bounce(runmode_name) method to CGI::Application The idea behind the bounce() method is to hopefully standardize the way we change run modes. Have a look at the sample code snippet of a

Re: [cgiapp] CGI::Application Patch Proposal: bounce()

2005-03-14 Thread Cees Hek
On Mon, 14 Mar 2005 12:17:43 -0500, Michael Peters [EMAIL PROTECTED] wrote: Tony Fraser wrote: Attached is a patch that applies cleanly to CGI::Application version 3.31. The patch adds a bounce(runmode_name) method to CGI::Application The idea behind the bounce() method is to hopefully

Re: [cgiapp] CGI::Application Patch Proposal: bounce()

2005-03-14 Thread Michael Peters
David Kaufman wrote: return $self-bounce('display_widget'); what was wrong with: return $self-display_widget(); There are a couple of reasons (although for the most part minor, which all have work-arounds) why a method like 'bounce' might be nice. + the get_current_run_mode() will not DWIM

[cgiapp] deleting a session cookie from the browser

2005-03-14 Thread Peter Fogg
Hello all, The code below is supposed to delete the session cookie from the requesting browser; it successfully delete the session record from the table. I am using both the DBH and Session plugins to CGI::Application. . . . my $cgi = $self-query(); my

Re: [cgiapp] Calling run mode without knowing name of sub

2005-03-14 Thread Cees Hek
On Mon, 14 Mar 2005 10:27:34 -0600, Geoffrey G. Hankerson [EMAIL PROTECTED] wrote: 2. Micael Peters suggests: my $runmode = $query-param('page'); my %rms = $self-run_modes(); return $self-$rms{$runmode}; This returns this error: syntax error at Supersite.pm line 694, near $rms{ syntax

Re: [cgiapp] deleting a session cookie from the browser

2005-03-14 Thread Peter Fogg
This works! my $dbh = $self-dbh(); $self-session_config( CGI_SESSION_OPTIONS = [driver:MySQL, $session_id, {Handle=$dbh}], ### # take out these # COOKIE_PARAMS = { -expires = 'now'}, #

Re: [cgiapp] Calling run mode without knowing name of sub

2005-03-14 Thread Cees Hek
On Mon, 14 Mar 2005 11:57:42 -0500, Michael Peters [EMAIL PROTECTED] wrote: If you specified the values as code refs, then you would have to do something more than what I was telling you. If you didn't use code ref's, but just the names of the methods as the values, then the following should