Re: [cgiapp] load_tmpl() question.

2004-04-09 Thread petersm
Emanuele Zeppieri wrote This is a feature request dressed-up as an opinion request ;-) I've found a situation where it could be desiderable to have the possibility to load, from inside a C::A app, an HTML::Template template from a scalar reference (while the C::A load_tmpl() method permits

Re: [cgiapp] load_tmpl() question.

2004-04-09 Thread petersm
Sorry, now to the whole list... From: Stephen Howard [EMAIL PROTECTED] I disagree. I think that by adding new methods to C::A you just clutter it up. We could end up with hundreds of new methods that just act as interfaces to different contructors/methods of other commonly used modules

Re: [cgiapp] Splitting large projects.

2004-04-08 Thread petersm
John Day wrote: I am starting a new project today which is going to be bigger, and I would like to break things up. But if I put the run modes into modules of their own how do they get access to the params and to the CGI query for example? I am reasonably new to OO-perl so I figure their is

Re: [cgiapp] Splitting large projects.

2004-04-08 Thread petersm
Jaclyn Whitehorn wrote I think I'm going to look at CheesePizza now, though, to see if I can glue all my modules together. Not sure yet if I'll use it or just learn from it. If you learn from it (or teach me by commenting on it) then my goals are accomplished. Michael Peters Venzia

Re: [cgiapp] Re: CGI::App::DBH or Ima::DBI

2004-01-28 Thread petersm
Mark Stosberg [EMAIL PROTECTED] wrote On 2004-01-23, petersm [EMAIL PROTECTED] wrote: Not to keep harping on the subject, but this is also possible with CheesePizaa::TemplateLoader. Would it possible to abstract this module so it's useful with DBI and H::T, without using the rest

Re: [cgiapp] Re: CGI::App::DBH or Ima::DBI

2004-01-23 Thread petersm
-- Original Message --- From: Michael Graham [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Fri, 23 Jan 2004 01:45:12 -0500 Subject: Re: [cgiapp] Re: CGI::App::DBH or Ima::DBI William McKee wrote: Let me see if I can line item the specific benefits I get: - all database

[cgiapp] [ANNOUNCE] CheesePizza 3.2 release

2004-01-23 Thread petersm
Hello list, Well, I finally got around to polishing up the CheesePizza a little bit more. If you wouldn't mind, please check out http://cheesepizza.venzia.com and let me have any feedback that your heart so desires. Also, I would really like some of the heavy weights on this list (Mark, Cees,

Re: [cgiapp] Re: CGI::Application::Session - session plugin for CGI::Application

2004-01-21 Thread petersm
From: Cees Hek [EMAIL PROTECTED] I think a nice addition to CGI::Application would be a system where you can register multiple functions at the different stages of execution in CGI::App. So instead of doing the following: sub cgiapp_prerun { my $self = shift; # do some stuff }

Re: [cgiapp] Re: CGI::Application::Session - session plugin for CGI::Application

2004-01-21 Thread petersm
). There should also be an option to blow the stack away and replace it with a new one containing only the current module's method. petersm wrote: Ok, I can see what you're talking about now... and I can see where the useful ness would be if a third party module could choose at which stages some

Re: [cgiapp] about $ENV{CGI_APP_RETURN_ONLY}

2004-01-13 Thread petersm
Rhesa Rozendaal [EMAIL PROTECTED] wrote [sorry I originally didn't forward this to the list - mp] Could we add an option to CGI::Application to turn this option on for specific instances? Something like $self-return_ouput_only(1); would be nice for creating plugin applications. I

Re: [cgiapp] Error with use DBI in cgi script

2004-01-13 Thread petersm
[EMAIL PROTECTED] wrote Execution of /var/www/cgi-bin/show_dbi_databases.cgi aborted due to compilation errors. First question, are you using CGI::Application? If not, then this is the wrong list to ask this question. Secondly, you are having problems 'cause your script isn't compiling. If

Re: [cgiapp] Another framework: CGI::Application::Plus

2004-01-13 Thread petersm
Domizio Demichelis [EMAIL PROTECTED] wrote Maybe OOTools doesn't use named subs as closures and I guess I shouldn't have spoken without looking at what OOTools does or how it does it. inseed it does use anonimous sub :-) Anyway, no problem, I'm happy to speak with you because you are a

Re: [cgiapp] Re: CGI::App 3.2_mls5 available

2004-01-05 Thread petersm
Ok, so here are my proposed changes... --- CGI-Application-3.2_mls5/lib/CGI/Application.pm 2004-01-03 19:55:32.0 -0600 +++ Application.pm 2004-01-05 11:00:25.0 -0600 @@ -470,6 +470,17 @@ } +sub delete { +my $self = shift; +my ($param) = @_; +

Re: [cgiapp] Re: CGI::App 3.2_mls5 (delete() and automated testing)

2004-01-04 Thread petersm
Mark Stosberg wrote This makes sense to me as well. Would you like to prepare a complete patch? Just add a little documentation, test and Changes file entry to code above. Although I must say that this isn't an issue that has come up for me yet. I definitely agree that either this

Re: [cgiapp] Using File::Find with CGI::Application

2003-12-29 Thread petersm
From: Irubin Consulting [EMAIL PROTECTED] I am bit confused on how to use external routines that go outside the runmodes. In this particular case, I am using File::Find (which fails) It doesn't seem to have anything to do with File::Find. I tried to run the same bit of code that you gave me and

RE: [cgiapp] Application program structure

2003-12-18 Thread petersm
Everything is located at http://cheesepizza.venzia.com. So... Has anyone gotten this CheesePizza thing to work for them yet? Any suggestions/comments...? Michael Peters Venzia - Web Archive:

Re: [cgiapp] Application program structure

2003-12-16 Thread petersm
Okay List, I tried to throw together some simple examples of our development system/structure. I know that this may seem like overkill to some, but we use it on everything. We developed the structure once, and it helps so much in keeping our projects maintainable/scalable and we reuse so much code

Re: [cgiapp] $self in included modules

2003-10-17 Thread petersm
The call to run_modes can take a hash as it's parameter. This keys of this hash are the names of the run modes and the values are either the names of the modes, or they are references to the subs for those modes. It sounds to me like you're going to need to create a few closures. Perl5 doesn't

Re: [cgiapp] cgi app prerun

2003-10-17 Thread petersm
Jeff MacDonald wrote i guess that would work. That is actually how it is supposed to work. now my question is , how to change the runmode in cgiapp_prerun ? thanks. You should use the 'prerun_mode' method described in the documentation. Michael Venzia

Re: [cgiapp] Subroutine permissions

2003-10-09 Thread petersm
If you want to have control over every subroutine that could possibly be called from every other subroutine/run mode it seems to me that you would need to have some sort of 'prerun' at the beginning of every sub to make sure that that user has permission for that sub. I would personally base my

Re: [cgiapp] Trying to understand how CGI::App works

2003-09-25 Thread petersm
If you just want to hide the parameter in the url you can just use a form's 'post' method instead of get. If you want to do this from a link instead of a form then you can create a form with no visible elements and then submit it with a javascript link. Something kinda like this form

Re: [cgiapp] How to download a dynamically generated file

2003-09-10 Thread petersm
Steve Hay [EMAIL PROTECTED] wrote I had a look at the CGI.pm manpage, and it says this about the -attachment argument: The -attachment parameter can be used to turn the page into an attachment. Instead of displaying the page, some browsers will prompt the user to save it to disk. The

[cgiapp] Cookies and mod_perl

2003-08-01 Thread petersm
Hello all, I am using CGI::App 3.1, Apache 1.3.27 and mod_perl 1.28 Here's the problem. I'm trying to set a cookie (using CGI's cookie method and C::A's header_props method). When the site was running non mod_perl there was no problem. The cookie was set. When running under mod_perl the cookie

Re: [cgiapp] Cookies and mod_perl

2003-08-01 Thread petersm
David Kaufman [EMAIL PROTECTED] wrote sub _GetCookie { my ($self, $cgi) = @_; that's an interesting construct. does it work? i get the cgi request object from CGI::Application instance, like this: sub _GetCookie { my $self = shift; my $cgi = $self-query; Sorry, I

Re: [cgiapp] get_previous_runmode() ?

2003-07-16 Thread petersm
Dan Coutu wrote When I was faced with this same problem I just passed the name of the current (soon to be previous) run mode as a hidden input parameter. That way I could easily return to the previous run mode if something went wrong. I'm sure that most of us have done something similar

[cgiapp] Deleting from param()

2003-06-19 Thread petersm
Hello all, I need a way to delete a parameter from C::A's internal param()s. I've looked at the documentation and the code and the only way I've seen is to directly delete from the {__PARAMS} hash. This goes against my OO indoctrination so I was wondering if anyone knows of a better way. If not,

Re: [cgiapp] Deleting from param()

2003-06-19 Thread petersm
[EMAIL PROTECTED] What about $obj-param(blah = undef); That still leaves 'blah' in the list of values returned by a call to $obj-param(). I would like a way to be able to delete it completely. Michael Peters - Web