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
. . . . . . . . . . . . . . . . . . . . . . . . . .
Mark Stosberg Principal Developer
[EMAIL PROTECTED] Summersault, LLC
v: 765-939-9301 ext 223website development
. . . . . http://www.summersault.com
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;
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
= '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
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
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
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
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
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
. . . . . . . . . . . . . . . . . . . . . . . . . .
Mark Stosberg Principal Developer
[EMAIL PROTECTED] Summersault, LLC
765-939-9301 ext 223 website development
. . . . . http://www.summersault.com/ . . . . . . .
-
To unsubscribe, e
inside
FORM name=form1 ... /FORM
###
-mark
. . . . . . . . . . . . . . . . . . . . . . . . . .
Mark Stosberg Principal Developer
[EMAIL PROTECTED] Summersault, LLC
765-939-9301 ext 223 website development
. . . . . http
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
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
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
]
--
. . . . . . . . . . . . . . . . . . . . . . . . . .
Mark Stosberg Principal Developer
[EMAIL PROTECTED] Summersault, LLC
765-939-9301 ext 223 website development
. . . . . http://www.summersault.com
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
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
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
=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
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
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
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
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
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
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.
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
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,
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'
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
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
31 matches
Mail list logo