Re: [cgiapp] ANNOUNCE: CGI::Application::MailPage 1.0

2002-01-06 Thread Sam Tregar
On Sun, 6 Jan 2002, Terrence Brannon wrote: Is there any possibility of abstracting the requirement of CGI::Application for HTML::Template? I had been interested in using CGI::Application with my templating module HTML::Seamstress. Sure, just don't call load_tmpl() and you can ignore

Re: [cgiapp] ANNOUNCE: CGI::Application::MailPage 1.0

2002-01-08 Thread Sam Tregar
On Tue, 8 Jan 2002, Mark Stosberg wrote: OTOH, I think MailPage is a good fit for CPAN-- it needs just bit of code in an instance script to work, and you don't need a template file to get going. If I was to provide a default template set to use with Cascade, my 20+ template files would be

Re: [cgiapp] CGI Question

2002-01-10 Thread Sam Tregar
On Thu, 10 Jan 2002, Sabherwal, Balvinder (MBS) wrote: The script gets hung when it executes this line and here is what it gives in the debug mode: main::(test.cgi:34):$q = new CGI; DB1 (offline mode: enter name=value pairs on standard input) Any ideas as what am I doing wrong??

Re: [cgiapp] RE: Error in CGI::Application script

2002-01-11 Thread Sam Tregar
On Fri, 11 Jan 2002, Sabherwal, Balvinder (MBS) wrote: If I copy and paste the output in a file and save it as html, it works fine, when I call this script from the web server, It returns me an Internal Server Error message. What is the reason?? I don't know. Check your server logs! -sam

Re: [cgiapp] changing run modes...

2002-02-04 Thread Sam Tregar
On Mon, 4 Feb 2002, tomasz konefal wrote: the example you gave is what i'm currently implementing, but it just doesn't seem right because it looks as though i'm not actually changing run modes, but i'm nesting into another method temporarily, and then jumping out. is this a correct

Re: [cgiapp] global(?) variables

2002-03-12 Thread Sam Tregar
On Wed, 6 Mar 2002, Joel Gwynn wrote: sub thisform { my $self = shift; my $dbh = $self-param('dbh'); my $q = $self-query; ... I know it's not a huge pain to do this, but is there a better way to have each sub automatically know about $dbh, $q, etc. Is this a good idea?

Re: [cgiapp] Understanding $rm_param-($self);

2002-03-12 Thread Sam Tregar
On Tue, 12 Mar 2002, Bill Catlan wrote: Idiom in question: # Get run-mode from subref $rm = $rm_param-($self); Is there a word for this idiom in the object oriented programming world - where an object calls a method on itself and passes a reference to itself to that method? It seems

Re: [cgiapp] Suggestion : new virtual method finish()

2002-03-13 Thread Sam Tregar
On Wed, 13 Mar 2002, Jean-Marc Pennel wrote: I suggest the addition of a new virtual method call in the run sub. The finish virtual method is called at the end of each run mode, but before setting up HTTP headers. I use this method to set a session cookie after each run mode. Maybe we

[cgiapp] [PATCH] Set TMPL_PATH using HTML::Template's path option

2002-05-06 Thread Sam Tregar
Here's a patch that sets TMPL_PATH using the HTML::Template path option rather than prepending it using a string. This removes the restriction that all paths must end in $ENV{IFS}. Also, it allows the TMPL_PATH setting to coexist with other potential search paths for templates (i.e.

Re: [cgiapp] Loading some HTML::Templates in a Central Location

2002-05-22 Thread Sam Tregar
On Wed, 22 May 2002, Cory Trese wrote: Scenario: 1.template loaded in 'cgiapp_ini( )' method, some parameters passed into it 2.template will be used in all of the children run modes -- it would also be convenient if they could fill in some additional parameters. Thus, the logic

RE: [cgiapp] cgiapp_prerun() method

2002-05-24 Thread Sam Tregar
On Fri, 24 May 2002, Brett Sanger wrote: I've missed the beginning of this discussion, so just tell me to shut up if I'm off track here. Yeah, you're off track. We're not talking about setup()... If you have the run-mode name in a variable you can do: my $run_mode = foo; return