[cgiapp] Re: need help with can't locate method 'new' error (SOLVED)

2001-09-27 Thread Mark Stosberg
distributed with my perl, it mentions the former style as the way to do inheritance, but clearly use base works fine in some other cases. -mark Mark Stosberg wrote: Hello! I'm setting up the trick where I create my own super class, that other modules interit from, but I'm running into an error

Re: [cgiapp] Grab output of a run mode without headers

2001-12-05 Thread Mark Stosberg
. . . . . . . . . . . . . . . . . . . . . . . . . . Mark Stosberg Principal Developer [EMAIL PROTECTED] Summersault, LLC v: 765-939-9301 ext 223website development . . . . . http://www.summersault.com

Re: [cgiapp] another HTML::Template question

2001-12-19 Thread Mark Stosberg
Joel Gwynn wrote: Using pv HTML::Template, I can do this: my $template = HTML::Template-new(filename = 'template.tmpl', associate = $query); where $query is my CGI object. I'm trying to do the same thing with CGI::App: my $q = $self-query;

[cgiapp] re: cgiapp_preoutput proposal

2001-12-22 Thread Mark Stosberg
Jesse, Thanks for your recent proposal re: cgiapp_preoutput. I think it generally addresses the desire to do something else in between running and producing output. As I understand it, this something that is defined once per module. One seems more useful the ability to do something different

Re: [cgiapp] Please critique my setup method

2001-12-29 Thread Mark Stosberg
= 'Update', Delete = 'Delete', Read= 'Read', # can't find a run mode? Abort AUTOLOAD= 'Abort', ); } On Fri, 28 Dec 2001, George Jempty wrote: --- Mark Stosberg [EMAIL PROTECTED] wrote: George

[cgiapp] proposal for enhancement: error handling for load_tmpl() and otherfailures

2001-12-29 Thread Mark Stosberg
Hello, I was just working with CGI::App today and ran into a situation I've run into several times before: I got an internal server error because a template could not be found when load_tmpl() was called. It would be nice if CGI::App could systematically address this issue by providing some

Re: [cgiapp] proposal for enhancement: error handling for load_tmpl()and other failures

2001-12-30 Thread Mark Stosberg
On Sun, 30 Dec 2001, Greg Marr wrote: I was just working with CGI::App today and ran into a situation I've run into several times before: I got an internal server error because a template could not be found when load_tmpl() was called. It would be nice if CGI::App could systematically

Re: [cgiapp] Send output to filehandle

2002-01-03 Thread Mark Stosberg
Greg Marr wrote: At 11:51 AM 01/03/2002, Mark Stosberg wrote: [EMAIL PROTECTED] wrote: this is in my ProcesssForm run mode sub SendReq { open (MAIL, | /usr/lib/sendmail -f \Service Request\ -t); print MAIL To: [EMAIL PROTECTED]\n

Re: [cgiapp] Please critique my setup method

2002-01-07 Thread Mark Stosberg
George Jempty wrote: From the time I first started tinkering with CGI, just 3 years ago, I always thought that submit buttons were greatly under-utilized in maintaining state. Between this, and the recent discussion on this group about 'finite state machines', I thought I could use

Re: [cgiapp] Using CGI::Application Methods in Non-CGI::Applicationscripts

2002-01-15 Thread Mark Stosberg
modules and data munging modules before I realized the need for these command line utilities, so my paradigm didn't have to shift very far to support it. :) -mark . . . . . . . . . . . . . . . . . . . . . . . . . . Mark Stosberg Principal Developer [EMAIL PROTECTED

Re: [cgiapp] runmode stickiness

2002-01-16 Thread Mark Stosberg
. . . . . . . . . . . . . . . . . . . . . . . . . . Mark Stosberg Principal Developer [EMAIL PROTECTED] Summersault, LLC 765-939-9301 ext 223 website development . . . . . http://www.summersault.com/ . . . . . . . - To unsubscribe, e

Re: [cgiapp] HTML::FillInForm tip (was runmode stickiness)

2002-01-17 Thread Mark Stosberg
inside FORM name=form1 ... /FORM ### -mark . . . . . . . . . . . . . . . . . . . . . . . . . . Mark Stosberg Principal Developer [EMAIL PROTECTED] Summersault, LLC 765-939-9301 ext 223 website development . . . . . http

Re: [cgiapp] HTML::FillInForm tip (was runmode stickiness)

2002-01-17 Thread Mark Stosberg
HFiF could do the wrong thing with a static run mode. -mark . . . . . . . . . . . . . . . . . . . . . . . . . . Mark Stosberg Principal Developer [EMAIL PROTECTED] Summersault, LLC 765-939-9301 ext 223 website development . . . . . http

[cgiapp] tip for loading run mode modules as needed

2002-01-20 Thread Mark Stosberg
Hello, I just thought of a CGI::App tip that may be of interest to some of you. In my application design, I have run modes organized into three modules, but just one setup routine in the main module that all three modules depend on. I wanted to only load a run-module if one of the run modes in

Re: [cgiapp] popup_menu

2002-01-22 Thread Mark Stosberg
Sabherwal, Balvinder (MBS) wrote: Guru's I have a script which makes a database call and the returned results are stored in a variable. if I pass this variable to the popup_menu, the options I get in the list box are array references. Is there a way to pass the variable to the popup_menu

Re: [cgiapp] changing run modes...

2002-02-04 Thread Mark Stosberg
] -- . . . . . . . . . . . . . . . . . . . . . . . . . . Mark Stosberg Principal Developer [EMAIL PROTECTED] Summersault, LLC 765-939-9301 ext 223 website development . . . . . http://www.summersault.com

Re: [cgiapp] Enhancement request

2002-02-22 Thread Mark Stosberg
Drew, I believe passing in the paramaters you want to new() and then overriding load_tmpl() is the way to go. I'm an HTML::Template user, but I always override load_tmpl() anyway in my sub-class to set my own defaults. It works nicely for me. You might also dig through the mailing list

Re: [cgiapp] global(?) variables

2002-03-06 Thread Mark Stosberg
Joel Gwynn wrote: Using cgi::app, I end up beginning each runmode subroutine like this: sub thisform { my $self = shift; my $dbh = $self-param('dbh'); my $q = $self-query; ... I keep them both in global variables. The param system give you the essential function of global

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

2002-03-13 Thread Mark Stosberg
Jean-Marc Pennel wrote: Hi, 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. Jean-Marc, I believe

Re: [cgiapp] Image Submit Buttons

2002-03-13 Thread Mark Stosberg
=image1 onClick=document.your_form_name.rm.value='path1' input type=image name=image2 onClick=document.your_form_name.rm.value='path2' Does something like that work for you? -mark . . . . . . . . . . . . . . . . . . . . . . . . . . Mark Stosberg Principal Developer [EMAIL

Re: [cgiapp] Config::Simple

2002-03-20 Thread Mark Stosberg
of system still works well for me. I think it's scalable (at least to 30. :) -mark . . . . . . . . . . . . . . . . . . . . . . . . . . Mark Stosberg Principal Developer [EMAIL PROTECTED] Summersault, LLC 765-939-9301 ext 223 website development

Re: [cgiapp] command-line debugging

2002-03-24 Thread Mark Stosberg
On Sun, 24 Mar 2002, Joel Gwynn wrote: when I'm debugging my app from the command-line, how do I specify a run-mode? Making a few assumptions about your environment and CGI::App usage, like this: ./your_script.cgi rm=the_run_mode_you_want See the CGI.pm docs on command line interaction for

RE: [cgiapp] Sessions and Permissions

2002-04-03 Thread Mark Stosberg
On Wed, 3 Apr 2002, Jesse Erlbaum wrote: I don't agree. Judiciously scoping application modules is one of the cornerstone concepts in CGI::Application. I originally tried to design Cascade ( http://summersault.com/software/cascade/ ) by grouping functionaly according to the needed

RE: [cgiapp] mod_auth* modules require pop-up boxes?

2002-05-01 Thread Mark Stosberg
On Wed, 1 May 2002, Jesse Erlbaum wrote: Out of curiosity: How many people here would be interested if I were to release some version of my Auth* modules to CPAN? I'm not very familiar with most of the 50 or so Auth* modules already there -- is this something which would be of value to

Re: [cgiapp] CGI::Application and HTML::Pager

2002-05-02 Thread Mark Stosberg
On Thu, 2 May 2002, Roy Rubin wrote: Got an error: syntax error at GLX.pm line 69, near sub d_search syntax error at GLX.pm line 90, near } Compilation failed in require at C:\projects\GLX\cgi-bin\engine.pl line 14. BEGIN failed--compilation aborted at C:\projects\GLX\cgi-bin\engine.pl line

Re: [cgiapp] Factoring out CGI.pm

2002-05-03 Thread Mark Stosberg
On Fri, 3 May 2002 [EMAIL PROTECTED] wrote: 3. There are times when one may need to output data to the browser, at several points throughout the life of a CGI/mod_perl app. What if we're about to do a long database query? For this, maybe we'd want to output occasional status messages.

Re: [cgiapp] HElp IDE!!

2002-05-13 Thread Mark Stosberg
On Mon, 13 May 2002, tomasz konefal wrote: Ernesto wrote: I'm looking for a develop enviroment to work on my cgi archives, i'm tired to work on pico linux editor :=) Then i would like to work on something more friendly . . . i myself use vim, screen, and a web browser for all my

Re: [cgiapp] Controlling HTML::Template Parameters from One Location

2002-05-20 Thread Mark Stosberg
On Mon, 20 May 2002, Cory Trese wrote: List -- I'm looking for a way for my CGI::Application to control all of it's HTML::Template calls from one place. In the 'setup( )' (or 'cgiapp_init( )', 'cgiapp_prerun( )') I would like to be able to set my parameters (path, die_on_bad_params, path,

Re: [cgiapp] Multiple arguments to header_props() possible?

2002-06-06 Thread Mark Stosberg
On Thu, 6 Jun 2002, Martijn van den Burg wrote: So the Q. is: Can header_props accept more than one argument? And if so, does it accept 'Content-Disposition'? I believe it does. It should work the same as the CGI.pm header() function. In your case you may need to use: '-Content-Disposition'

Re: [cgiapp] [OFF-TOPIC] Expiring Forms

2002-06-13 Thread Mark Stosberg
On Thu, 13 Jun 2002, Juan Jose Natera Abreu wrote: Hi guys! I guess most of you have experienced the problem of duplicated submissions due reload button I have seen some protections against it on the web, and I would like to implement it on my apps. My first thought is to compare the

Re: [cgiapp] [OFF-TOPIC] Expiring Forms

2002-06-13 Thread Mark Stosberg
On Thu, 13 Jun 2002, Brett Sanger wrote: In the form display run mode, select the next available unique ID for the item that will be it's primay key. When you submit the form, you simply have to check to see if you've already inserted something with the same ID (which your database may