Re: [cgiapp] Subclassing form

2002-06-11 Thread Brian . T . Wightman
Why not just create an AUTOLOAD parameter, and return your header, desired application output, and footer from that function. For example (untested, buyer beware), $self-run_modes('AUTOLOAD' = 'header_body_footer'); sub header_body_footer { my ($self, $rm, @rest) = @_; ...

RE: [cgiapp] CGI Error [Solved!!]

2002-05-13 Thread Brian . T . Wightman
Sorry about the attribution (*%@#*^$ Notes) $output .= $q-header_props(-type =image/$format); $output .= $q-blockquote(); $output .= $q-blockquote(Centerh2Graph/h2/Center); my ($usr, $stim, $cusr, $cstim) = times; $output .= CenterIMG

Re: [cgiapp] cgiapp_prerun() method

2002-05-06 Thread Brian . T . Wightman
I would vote for the return value, since it is similar in behavior to the run-modes within CGI::Application. my $0.02, Brian [EMAIL PROTECTED] on 05/06/2002 02:03:34 PM To:[EMAIL PROTECTED] cc: bcc: Subject:[cgiapp] cgiapp_prerun() method [snip] 1. Return run-mode value 2.

Re: [cgiapp] errors and irreproducible bugs

2002-04-01 Thread Brian . T . Wightman
Is it possible that you are doing a die() anywhere in your script? I think (IIRC) that this would bypass the teardown method. If anyone else can remember better than I can, please correct my premise. Brian [EMAIL PROTECTED] on 03/31/2002 03:19:46 PM To:[EMAIL PROTECTED] cc: bcc:

Re: [cgiapp] Can't pass mode2

2002-01-18 Thread Brian . T . Wightman
See the documentation for the -override switch in CGI.pm (perldoc CGI). This was also discussed just this week on this list. Find a set of messages with the subject runmode stickiness. Does anyone know if there is a searchable archive to this list? Then we could just point to

Re: [cgiapp] Re: Internal Error

2002-01-15 Thread Brian . T . Wightman
I would check permissions on the file. Can the user the web server is running as access the database file? You may want to run a simple perl script that walks down the tree to the file until it fails. You may also want to change your error message from ' die Failed to open Sysmon DB;' to 'die

RE: [cgiapp] Re: Internal Error

2002-01-15 Thread Brian . T . Wightman
Could you add the filename it is trying to open to the die() call? Maybe that will open our eyes, since I am not seeing anything obvious. cgi-app - should this be taken off list? Brian [EMAIL PROTECTED] on 01/15/2002 12:06:17 PM To: [EMAIL PROTECTED] cc: bcc: Subject: RE: [cgiapp]

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

2002-01-14 Thread Brian . T . Wightman
Under use strict, you need to predeclare all variables used. See the documentation for the my keyword using perldoc (perldoc -f my) for more information. I would also recommend reading chapters 1 and 2 (as well as 3-5 and 7 as you have time) of the O'Reilly camel book (Programming Perl - Wall,

Re: [cgiapp] Anyone having this problem??

2002-01-14 Thread Brian . T . Wightman
My bad. I forgot to trim your direct address off the reply headers. Brian [EMAIL PROTECTED] on 01/14/2002 10:20:36 AM To: [EMAIL PROTECTED] cc: bcc: Subject: [cgiapp] Anyone having this problem?? Every msg posted to the list is being received twice in my mail. Is it with everyone or