Re: [cgiapp] Proposal: improving mode_param()

2004-09-09 Thread Michael Peters
Mark Stosberg wrote: In 2001, I posted on this list a suggestion for improving mode_param: http://www.mail-archive.com/cgiapp%40lists.vm.com/msg1.html Years ago, Jesse realized the value of passing the run mode through PATH_INFO. My own years of experience since then have validated this as a

Re: [cgiapp] Re: plugins

2004-09-09 Thread William McKee
On Thu, Sep 09, 2004 at 09:51:25AM -0400, Michael Peters wrote: cfg() dbh() validate_rm() session() don't forget ... tt() config() What modules implement these? It looks like tt stands for Template Toolkit (or possibly Text::Template). How is this plugin different from the one that

Re: [cgiapp] Re: plugins

2004-09-09 Thread Michael Peters
William McKee wrote: On Thu, Sep 09, 2004 at 09:51:25AM -0400, Michael Peters wrote: cfg() dbh() validate_rm() session() don't forget ... tt() config() What modules implement these? It looks like tt stands for Template Toolkit (or possibly Text::Template). How is this plugin different from the

RE: [cgiapp] Proposal: improving mode_param()

2004-09-09 Thread Kleindenst, Fred
I take it that this works exclusively under mod_perl and not on a vanilla web server. --Fred -Original Message- From: news [mailto:[EMAIL PROTECTED] Behalf Of Mark Stosberg Sent: Wednesday, September 08, 2004 7:00 PM To: [EMAIL PROTECTED] Subject: [cgiapp] Proposal: improving

Re: [cgiapp] Proposal: improving mode_param()

2004-09-09 Thread Rhesa Rozendaal
Kleindenst, Fred wrote: I take it that this works exclusively under mod_perl and not on a vanilla web server. no, path_info is available under mod_cgi as well. Only if by vanilla you mean IIS, then path_info isn't available by default. It can be turned on though, but don't ask me how... Rhesa

Re: [cgiapp] Proposal: improving mode_param()

2004-09-09 Thread Rhesa Rozendaal
Michael Peters wrote: I have also been working on something along this concept... I took a queue from Apache::Dispatch and Maypole which act as mod_perl handlers that then give the work to some controller class based on the path... I'm currently calling it C::A::Dispatch. It based on the path it

[cgiapp] Re: Proposal: improving mode_param()

2004-09-09 Thread Mark Stosberg
On 2004-09-09, Michael Peters [EMAIL PROTECTED] wrote: I'm currently calling it C::A::Dispatch. It based on the path it would create an instance of the correct class, give it the right run mode, and then run it... So a request for something like this... /app/user_preferences/mode2

[cgiapp] Re: Proposal: improving mode_param()

2004-09-09 Thread Mark Stosberg
On 2004-09-09, Kleindenst, Fred [EMAIL PROTECTED] wrote: Interesting. For the record, running C::A on netscape's iPlanet web server one will get path_info in the ENV vars. To take the mystery out of it, I quit being lazy and found the reference. It is in the CGI spec, and thus should be

Re: [cgiapp] status of next release

2004-09-09 Thread Michael Peters
Mark Stosberg wrote: On 2004-09-09, Kinyon, Rob [EMAIL PROTECTED] wrote: There's the error_mode change I made. I didn't create a universal diff patch - is this something I need to do in order to get the change added in? It would be helpful if you have a chance to get oit. If you rember the

Re: [cgiapp] Re: Proposal: improving mode_param()

2004-09-09 Thread William McKee
On Thu, Sep 09, 2004 at 11:17:27PM +, Mark Stosberg wrote: $self-mode_param('rm', path_info = 1); If you do it that way, then how about taking the value for path_info as the path field to use? So, path_info = 2 would use the second part of PATH_INFO? works for me. I've just