Re: [cgiapp] DAO, DBIx::Abstract and other DBH musings (was: Re: [cgiapp] CGI::App::DAO) (fwd)

2003-01-06 Thread Cees Hek
Quoting Mark Stosberg [EMAIL PROTECTED]: Another method would be to put the $DBH in a CGI::App param. This makes the handle available everywhere you have a sub-class of your CGI Application with: sub foo { my $self = shift; my $dbh = $self-param('dbh'); } That seems

RE: [cgiapp] mod_perl and CGI::App

2003-01-13 Thread Cees Hek
Quoting Jesse Erlbaum [EMAIL PROTECTED]: Hi Nate -- I have a few projects written with CGI::App right now. A couple of them are lower traffic sites but now a few of them are falling into the realm of performance intensive. I'd like to start using mod_perl for those sites.

Re: [cgiapp] ANNOUNCE BETA: CGI::Application::Template 0.01

2003-02-08 Thread Cees Hek
Quoting Jesse Erlbaum [EMAIL PROTECTED]: Hi All -- I have a little module I've been working on, and I'd love to get some feedback. You can download it here: I finally found some time to look at your new module... It looks very interesting. I definately think it will be useful to people.

Re: [cgiapp] Setting values in a select...

2003-04-03 Thread Cees Hek
Quoting Brett Sanger [EMAIL PROTECTED]: On Thu, Apr 03, 2003 at 10:19:25AM -0500, Steve Comrie wrote: I've been using HTML::FillInForm to get this job, and other similar ones done quickly and easily. Ditto. I'm not using HTML::Template, so I have my own output() routine to call Template

RE: [cgiapp] C::A and mod_perl handlers

2003-06-21 Thread Cees Hek
Quoting Jesse Erlbaum [EMAIL PROTECTED]: Hi Chris -- How is Apache::Registry much easier than this? As Chamas indicates a handler is somewhat faster than Apache::Registry. This speed margin (and CPU savings) is an easy comfort given the painlessness of doing so. I guess that's

RE: [cgiapp] Cookies C::A and mod_perl

2003-08-28 Thread Cees Hek
Quoting Flowers, Jay [EMAIL PROTECTED]: Well I don't know why this, but it seems that this problem is due to windows XP. The same setup on a windows 2000 server machine works as expected. I have inspected the headers with wget -S and I see no difference between the OSes. I also found that

Re: [cgiapp] Best practice: handling failures at cgiapp_init() time?

2003-08-29 Thread Cees Hek
Quoting Steve Comrie [EMAIL PROTECTED]: You could have a cgiapp_prerun in your superclass, and also have one in your application module. If you want both to be executed, then you just have to remember to call $self-SUPER::cgiapp_prerun() in the cgiapp_prerun of your application

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

2003-09-26 Thread Cees Hek
Quoting Eric Moore [EMAIL PROTECTED]: Randall Swartz said something to the effect of you shouldn't let anyone know what you are using for cgi. He was speaking of using extensions to file names like .pl. Security through obscurity? Security through obscurity is only bad if it is the only

Re: [cgiapp] cgi_minimal compatible?

2003-10-23 Thread Cees Hek
Quoting Mark Fuller [EMAIL PROTECTED]: I do not know CGI::Minimal, but CGI::Application does not use the HTML-producing functions of CGI.pm. Thanks. CGI::Minimal is just a way to get access to CGI vars without accepting all the more popular things CGI.pm gives. ... Do you know how I can

Re: [cgiapp] Re: CGI Error handling

2003-11-03 Thread Cees Hek
Quoting Mark Fuller [EMAIL PROTECTED]: I use cgiapp_init to retrieve session tracking from a MySQL table, and determine if the visitor needs to sign in (either because no session-tracking row was found or the information expired due to inactivity). I know how to redirect to the login

Re: [cgiapp] teardown method

2003-11-03 Thread Cees Hek
Quoting Mark Fuller [EMAIL PROTECTED]: For session tracking, I keep the values in a hash and update the table in the teardown method. I thought this would be a faster way to update the session-tracking table because, by then, I the runmode would have emitted its output and the visitor would be

Re: [cgiapp] Re: concerns with new header_props

2003-11-09 Thread Cees Hek
Quoting Mark Stosberg [EMAIL PROTECTED]: header_props - works as is Keeping header_props unchanged sounds like a good idea in order not to break things. I think I prefer to move forward with allow header_props to be called multiple times. header_add- add a header of this

Re: [cgiapp] concerns with new header_props

2003-11-09 Thread Cees Hek
Quoting Thilo Planz [EMAIL PROTECTED]: header_add- add a header of this type to the current list I think adding a header of this type to the current list makes sense only for cookies. Passing a list (arrayref) to CGI-header does not work with other headers than cookies:

Re: [cgiapp] Re: concerns with new header_props

2003-11-09 Thread Cees Hek
Quoting Mark Stosberg [EMAIL PROTECTED]: These are good concerns. My concern is about proliferation of the C::A interface. If we have header_add, but /not/ add_cookie, I could be happy. header_add() can be documented to explain It's really only useful for cookies and warnings right now.

Re: [cgiapp] concerns with new header_props

2003-11-15 Thread Cees Hek
there... Cheers, Cees Quoting Cees Hek [EMAIL PROTECTED]: Quoting Jesse Erlbaum [EMAIL PROTECTED]: Hello all -- Cees, Mark, and I are in a conversation regarding changes to the functionality of header_props() in version 3.2. Before I reply to Cees' message, I wanted to forward

RE: [cgiapp] cgi::app, cgi::session https

2003-11-19 Thread Cees Hek
Quoting Bill McCormick [EMAIL PROTECTED]: Ok I see. # allow only the guest user, for real applications use a subclass meaning override the _login sub? I don't think I like that. I think I'll build a feature that allows you to pass in a hash of user/passwd values. Thoughts? What you

Re: [cgiapp] CGI::App 3.2 proposed release available

2003-11-24 Thread Cees Hek
been added to allow setting extra headers, particularly cookies, after header_props has already been called (Cees Hek, Mark Stosberg) I still think I like having the header_set and header_add functions instead of just the header_add. The way you have implemented header_add seems like

Re: [cgiapp] Web site testing

2003-12-04 Thread Cees Hek
petersm wrote: Hello all, We have several large sites that are using CGI::App and we are very unhappy with our current testing methods which consist of trying to do everything a stupid user would do to try and break the app and then fixing problems as they occur. This isn't that bad for smaller

Re: [cgiapp] coooonfirming password with CGI::A::ValidateRM

2003-12-04 Thread Cees Hek
John Day wrote: Hi, I am using CGI::Application::ValidateRM in a webapp and i tmust be too late in teh week for clear thinking. I need to do a check on a cofirmation password. You know, the old signup page that asks you to confirm the password by retyping it. Is there a simple way of doing it

[cgiapp] Perl Advent Calendar

2003-12-07 Thread Cees Hek
I just noticed that CGI::Application is the module being showcased on the Perl Advent Calendar today. http://perladvent.org/2003/8th/ For anyone who hasn't found this gem yet, you are definately missing out. I already found a couple of new useful modules that I didn't know about this year

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

2004-01-19 Thread Cees Hek
Mark Stosberg wrote: Since so many of us use DBI database handles and session management, I would love to see some plug-in modules to add these kind new methods. Perhaps something in the spirit of ::ValidateRM would work. (I think that technique is called mix-in module. Well, I found a couple of

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

2004-01-20 Thread Cees Hek
Mark Stosberg wrote: Has anyone used Ima::DBI for database handle management with CGI::App? I understand it's used for this as part of the popular Class::DBI framework. I have been using it indirectly, since I use Class::DBI for most of my web applications. It does make it a cinch to work with

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

2004-01-20 Thread Cees Hek
Mark Stosberg wrote: I've now reviewed the POD and code for this. I find it very useful. Sure, it's very simple. That means I can focus on CGI::App and CGI::Session and this little glue module will just work and be easy to use. So I give the usefulness two thumbs up. Thanks. I have one

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

2004-01-21 Thread Cees Hek
Mark Stosberg wrote: On 2004-01-21, Terrence Brannon [EMAIL PROTECTED] wrote: Cees Hek wrote: What if someone wants to create a CGI::Application::Session module based on Apache::Session? Someone has: http://perlmonks.org/index.pl?node_id=142050 Thanks for the reference. I definitely don't

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

2004-01-21 Thread Cees Hek
petersm wrote: From: Cees Hek [EMAIL PROTECTED] We actually do something like this in the CheesePizza. The base class for all of our plugins (named 'Plugin' btw) has an implementation of cgiapp_prerun that looks to see if a param named 'preRun' exists. It it does, then it is run. This was any

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

2004-01-21 Thread Cees Hek
petersm wrote: I agree with Mark. I don't see why you have a problem with a call like $self-SUPER::cgiapp_prerun(). If they are overriding a method but they still want that method to run then I think this is a very clean and easy solution. For the most part I feel that there are enough hooks that

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

2004-01-21 Thread Cees Hek
From: Stephen Howard [EMAIL PROTECTED] wrote do consider when making your hook stacks that it might be handy for a module to be able to state a preference as to whether it would rather it's version of the method in question to be run before or after the methods of its parent module(s). There

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

2004-01-22 Thread Cees Hek
Stewart C. Russell wrote: I'd agree with all of those, William, but it's only fair to note that there are downsides: - There can a considerable performance hit using CDBI over embedded SQL. Yes, there is always a tradeoff with abstraction. But as you know, you can default to the Ima::DBI

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

2004-01-22 Thread Cees Hek
Stephen Howard wrote: That makes a lot of sense to me for things like Session and DBI, which could install things similar to $self-query ($self-dbh, $self-session), but I don't see why a mixin would need to hook into the pipeline, rather than be called upon by methods in the pipeline. Perhaps

Re: [cgiapp] Re: Writing the CGI::Application book

2004-01-25 Thread Cees Hek
Sam Tregar wrote: That could be. My evaluation was necessarily cursory. I've never actually used any of the modules I so casually discarded. Well, you probably realized very quickly that Class::DBI doesn't really work well when using HTML::Template (which you are using for obvious reasons). [

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

2004-01-27 Thread Cees Hek
Domizio Demichelis wrote: I think Domizio's case is similar, even though it's not a sub-class, because it passes all the current CGI::App tests. I would be careful about stating that it passes all the tests, because I don't believe it does. The failures seem to be minimal but they are there.

Re: [cgiapp] Perl 5.8.2 from AS

2004-01-27 Thread Cees Hek
Bob Hicks wrote: I have 5.8.2.808 and I am only using CGI-Application and HTML-Template. I am going to do a reinstall of Apache to see if that is a problem as well. I should have reread the Subject and I would have realized you were using 5.8.2... Ah! From the log: [Mon Jan 26 14:12:29 2004]

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

2004-01-27 Thread Cees Hek
Mark Stosberg wrote: What are other specific features that would make TT attractive to an H::T user? Someone already mentioned the ability to more easily reference objects. What are some other favorite features that get used frequently? Like I have mentioned in a previous email, my main reason for

Re: [cgiapp] Re: example code. (for CGI::App, ValidateRM, and H::T)

2004-02-05 Thread Cees Hek
Vitaliy Babiy wrote: Hi guys! One more question... I need to check registration form, so there are two 'password' fields, they must be identical. It's simple how to check they are not blank, but how to check identity? And I need to check if choosen login is exists. The question is - how to do

Re: [cgiapp] CGI-App and Apache::Request

2004-02-06 Thread Cees Hek
Steve Hay wrote: but that's no great hardship. Even that could be made easier, e.g. enhance CGI::Application's import() method so that users can say use CGI::Application qw(-apache_request); to tell CGI::Application to load and use Apache::Request, rather than the CGI. In other words,

Re: [cgiapp] Re: CGI-App and Apache::Request

2004-02-06 Thread Cees Hek
Jesse Erlbaum wrote: In a pure mod_perl environment, this would have to be implemented via the httpd.conf or .htaccess file: PerlHandler My::App I'm happy with that interface. CGI-App could simply implement a handler() method which constructs and runs CGI-App. Also, we need a method, via

Re: [cgiapp] Planning next CGI::App release

2004-02-09 Thread Cees Hek
[EMAIL PROTECTED] wrote: One further request, and this could generate a flame war, which I have neither the time, nor the interest to entertain, is the dedicated support of a session module, and obviously, it should also be persistantly available througout the application like query(), and

[cgiapp] [ANNOUNCE] CGI::Application::Session 0.03

2004-02-11 Thread Cees Hek
I'd like to announce that the first public release of CGI::Application::Session is now available on CPAN. This module seamlessly integrates CGI::Session support into CGI::Application. Since this is the first public release, the code is still considered alpha, and the functionality is

Re: [cgiapp] [ANNOUNCE] CGI::Application::Session 0.03

2004-02-11 Thread Cees Hek
[EMAIL PROTECTED] wrote: Is there an easy way to get this to work with an earlier version of C::A, in light of the critical bug announced earlier this morning? The only feature that depends on CGI::App 3.21 is the automatic cookie support. If you don't mind handling the cookies yourself, then

Re: [cgiapp] [ANNOUNCE] CGI::Application::Session 0.03

2004-02-11 Thread Cees Hek
Sam Tregar wrote: On Wed, 11 Feb 2004, Cees Hek wrote: Here is the simplest example of how to use this module: use base qw(CGI::Application); use CGI::Application::Session; I love the idea, but this usage seems a little suspect to me. It reminds me of Time::Piece::MySQL, which also adds

Re: [cgiapp] Re: [ANNOUNCE] CGI::Application::Session 0.03

2004-02-11 Thread Cees Hek
David Kaufman wrote: i'm not sure if or how the C::A::Session Cees has announced relates to the CGI::Session which i've used, the other Session modules that i've seen, or others that i've heard mentioned, but the fact that there is more than one on the market is a strong argument IMO for adding

Re: [cgiapp] Print without a return from a runmode

2004-03-11 Thread Cees Hek
Eric wrote: Hi, I want to make a progress bar showing time expired and using $|=1 for this statement. The easiest, and most common way to do this is to post to an interim page that shows the progress bar, and have that page automatically redirect to the real page which can take it's time doing

Re: [cgiapp] newbie question: param()

2004-03-25 Thread Cees Hek
Hi Adrian, I just tried your code snippet, and I got the expected results! There must be something else that you are doing that is causing your problem. One note, you do realize that you aren't supposed to be printing anything from your scripts right? I am assuming that you used print in

Re: [cgiapp] RFC: CGI::Application::RunModeCache

2004-05-12 Thread Cees Hek
Quoting Brian Cassidy [EMAIL PROTECTED]: Hi All, Something I've been wanting for a while now is a generic caching system to plug in to CGI::Application. For example, I have a CGI::App which uses Gedcom.pm. Some of its operations can be quite lengthy, thus caching would be wise. The

Re: [cgiapp] Using CGI::App and CGI::App::Session

2004-05-10 Thread Cees Hek
Quoting Scott Prelewicz [EMAIL PROTECTED]: After days of frustration, I must turn to the list for some help. Below is my code for the start of a rewrite of a shopping cart. I am rewriting it to CGI::App with CGI::App:Sess. I don't know what Im doing wrong and about to give up. I cat get the

Re: [cgiapp] redirect and send cookie

2004-05-10 Thread Cees Hek
Quoting Scott Prelewicz [EMAIL PROTECTED]: Based on a user config option, at a point in my script I want to either call a format_html function or redirect to another url. In both cases, I have tosend out the cookie. Where should I put this if.else, and how do I do this, namely how do I send a

Re: [cgiapp] CGI::App, CGI::Session and CGI::Simple

2004-04-26 Thread Cees Hek
Ron Savage wrote: V 3.94 has this on line 168: if ( $arg-isa('CGI') ) {... which means only a CGI-derived object can be used. To use CGI::Simple you could - but shouldn't - try: if ( $arg-isa('CGI') || $arg-isa('CGI::Simple') ) {... Obviously it's ridiculous to list all possible class

Re: [cgiapp] User authentication

2004-05-02 Thread Cees Hek
Gabor Szabo wrote: I might missing something seriously and it is late at night but is there a module that can be plugged in easily that would provide authentication in a regular CGI environment ? [snip] ps. maybe CGI::Session::Auth is what I am looking for ? I have been using CGI::Session::Auth

Re: [cgiapp] CGI::App, CGI::Session and CGI::Simple

2004-05-02 Thread Cees Hek
Ron Savage wrote: Lincoln Stein says he's too busy at the moment (surprise!) and has asked me to whip up a can() method. I'll do that now. Cool! Thanks for following up on this Ron. If you have any suggestions, post them to this list (I'm subscribed). Here is a first stab at a solution. I

Re: [cgiapp] HTTP_REFERER Virtual Hosts

2004-05-03 Thread Cees Hek
Quoting William McKee [EMAIL PROTECTED]: On Sun, May 02, 2004 at 06:28:38PM -0400, Linda Jen wrote: I have been trying to find a way to get the absolute path for the url returned in HTTP_REFERER. The url may referce an alias, virtual host, or simply some subdirectory but will not be

Re: [cgiapp] Re: RFC: CGI::Application::RunModeCache

2004-05-26 Thread Cees Hek
Stosberg wrote: Cees Hek [EMAIL PROTECTED] wrote: Quoting Brian Cassidy [EMAIL PROTECTED]: - you have effectively hijacked the prerun and postrun methods which means they are unavailable to any sub/super classes. This brings me back to my request from many months ago for the ability to register

Re: [cgiapp] Re: RFC: CGI::Application::RunModeCache

2004-05-27 Thread Cees Hek
Quoting William McKee [EMAIL PROTECTED]: This forwarding of an event is not necessary developer unfriendly. I have experience with an environment (formerly known as Asymmetrix Toolbook) in which event messages had to be explicitly forwarded. You forget occasionally but the unexpected results

Re: [cgiapp] Re: RFC: CGI::Application::RunModeCache

2004-05-28 Thread Cees Hek
William McKee wrote: It sounds like what your patch will ultimately provide is a way to easily add/remove functions into C::App which would make things much easier for new users as well as for those of us who have our favored modules and gobs of code to make them easily available in C::App (e.g.,

Re: [cgiapp] Generating a 'pop-up' from cgi-a

2004-06-07 Thread Cees Hek
Quoting John Day [EMAIL PROTECTED]: At 04:19 PM 6/7/2004, John Day wrote: I have an application where I want to generate a 'printable invoice' in a separate window. Preferably I would like the browser page to not have toolbars and all that, just a simple link at the bottom that has an

Re: [cgiapp] Measuring the time taken by the CGI...

2004-06-29 Thread Cees Hek
Kleindenst, Fred wrote: Hello, I'd like to measure the time taken to execute each particular hit to cgi::app and display the result. My thoughts on how to implement this are roughly: * get the time $T1 in cgiprerun - store in $self * get the time $T2 in cgipostrun and compute the difference *

[cgiapp] RFC - C::A::Plugin - abstract base class for plugins

2004-07-26 Thread Cees Hek
, methods of this class will not be found. In other words, inherited methods will not be found. =head1 SEE ALSO =over =item * CGI::Application =back =head1 AUTHOR Packaged up for CGI::Application by Cees Hek, Elt[EMAIL PROTECTED]gt, but really written by Jean-Christophe Zeus in Class::DBI::Plugin

Re: [cgiapp] RFC - C::A::Plugin - abstract base class for plugins

2004-07-27 Thread Cees Hek
Quoting Michael Peters [EMAIL PROTECTED]: Cees Hek wrote: I really love the plugin based model that so many other modules (Template Toolkit, Class::DBI now, etc). It really simplifies development yet it doesn't the flexibility that we all enjoy. Don't like the plugin, don't use

Re: [cgiapp] RFC - C::A::Plugin - abstract base class for plugins

2004-07-27 Thread Cees Hek
Michael Peters wrote: Just one more comment/question here. Other modules that use a plugin style architecture usually put them into a ::Plugin namespace (ie, Template::Plugin::DBI). Should we consider doing that here if we are serious about hording up a lot of plugins? Should CGI::Application::TT

Re: [cgiapp] Re: RFC - C::A::Plugin - abstract base class for plugins

2004-08-05 Thread Cees Hek
Mark Stosberg wrote: It simplifies and standardizes the way a plugin can be built for CGI::Application, and it works completely outside of the CGI::Application codebase (ie no patches necesary). It avoids the annoyances of building a big inheritance tree for the plugins you want to use by

Re: [cgiapp] Re: RFC - C::A::Plugin - abstract base class for plugins

2004-08-05 Thread Cees Hek
Bill Catlan wrote: Cees, So a plugin author would use base CGI::Application::Plugin; in their plugin, and that would be it? That is the first part, the second part is to mark which methods you want automatically exported to the class that is 'use'ing the plugin, and that is done using a

Re: [cgiapp] Re: RFC - C::A::Plugin - abstract base class for plugins

2004-08-06 Thread Cees Hek
Quoting Bill Catlan [EMAIL PROTECTED]: Should C::A::Plugin perhaps put the plugin methods into C::A space, and not the C::A app module? After all, the plugin is a /C::A/ plugin, not a 'MyApp' plugin. Hi Bill, That is how the C::A::Session module currently does it. But there are some

Re: [cgiapp] Re: RFC - C::A::Plugin - abstract base class for plugins

2004-08-07 Thread Cees Hek
Thanks for spending some time on this guys. I appreciate the help and support. Bill Catlan wrote: Just to set a reference point, do we all agree that everything we discussed would benefit from some agreed upon method of preventing namespace conflicts between plugins - no matter what space they

Re: [cgiapp] Strange mysql behaviour

2004-08-11 Thread Cees Hek
BARKER, Paul wrote: Hi All I'm back using CGI::Application after what must be a year or more away doing other stuff so feel free to flame me (gently!) if this is an obvious mistake but ... Welcome back sub img_index # Show index of images for a particular hostid { my $self = shift; my

Re: [cgiapp] C:A:Session Question

2004-08-27 Thread Cees Hek
Quoting Jason Purdy [EMAIL PROTECTED]: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'm trying to understand the Session.pm module/plug-in and the documentation isn't helping me understand (that serves as a reflection on me, unfortunately -- not the docs ;)). Hi Jason, doc patches are

Re: [cgiapp] Applications that generate custom forms...

2004-08-27 Thread Cees Hek
Quoting Tim Howell [EMAIL PROTECTED]: Do any of you ever create applications that present forms to a user based on information entered by a different level of user? For example, in an event registration system I'm writing, a user is required to enter different information when registering

Re: [cgiapp] cgi::app vrs ???

2004-08-31 Thread Cees Hek
I agree with what Stephen is suggesting here as it is definately the right way to go, but please remember to check the license of all of the modules that you include in your distribution if you go this route. I think most modules on CPAN are released under the Artistic license (or a combined GPL

Re: [cgiapp] Thoughts on CGI::APP's design

2004-09-01 Thread Cees Hek
Yung-chung Lin wrote: I don't think CGI::App's design is good enough. Using run modes is useful and helps a lot to clearly define functions of a web application. But what I don't understand why not make return value passing purely data-oriented. Then, people don't need to mess with code and data

Re: [cgiapp] Re: plugins

2004-09-08 Thread Cees Hek
PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 08, 2004 9:33 PM Subject: [cgiapp] Re: plugins On 2004-05-29, Cees Hek [EMAIL PROTECTED] wrote: The great thing about CGI::Application is that it gives you the freedom to use whatever modules you want and buildup your own toolbox of code

Re: [cgiapp] [PATCH] added hook

2004-09-17 Thread Cees Hek
Quoting Tony Fraser [EMAIL PROTECTED]: Hi, I'm developing a reusable subclass of CGI::Application. For this project I would like to have a new hook added to CGI::Application. The attached patch includes the changes I have made to my local copy for development. If anyone has any

[cgiapp] ANNOUNCE: CGI::Application::Plugin::TT

2004-09-19 Thread Cees Hek
and as such, the features and interface are subject to change. So please check the Changes file when upgrading. SEE ALSO CGI::Application, Template, perl(1) AUTHOR Cees Hek [EMAIL PROTECTED] LICENSE Copyright (C) 2004 Cees Hek [EMAIL PROTECTED] This library is free software. You

Re: [cgiapp] Re: Status of upcoming release?

2004-09-22 Thread Cees Hek
Hi Mark, Just wondering if anyone thinks the multiple hooks patch that I provided back in February is still worthwhile. here is the relevant thread: http://www.jsw4.net/info/list-archives/cgiapp/04-02/msg00034.html This is something that will be very helpful (if not required) for the Auth plugin

Re: [cgiapp] Re: register_hooks() proposal

2004-09-23 Thread Cees Hek
Tony Fraser wrote: The names work fine for me. They are the same as Apache 2.0 uses, minus the leading HOOK_. Apache 1.3 didn't have that ability you had to fiddle with the AddModule directive order to get modules in the right order, it was a pain. I admit Apache is written in C and this is Perl,

Re: [cgiapp] Re: register_hooks() proposal

2004-09-23 Thread Cees Hek
Mark Stosberg wrote: I think it's still an interesting an idea, and I'm seen it come up several times in discussion since then. I'm not opposed to it, I just feel conservative about moving it directly to CGI::Application proper. The patch does not alter any of the current functionality in

Re: [cgiapp] Re: register_hooks() proposal

2004-09-24 Thread Cees Hek
Quoting William McKee [EMAIL PROTECTED]: On Fri, Sep 24, 2004 at 02:01:35PM +1000, Cees Hek wrote: Sounds good to me. The MIDDLE or DONTCARE are really the default, so they could be eliminated as well. ie specify FIRST or LAST, or leave blank for the default. Couldn't MIDDLE

Re: [cgiapp] CGI::Application::Plugin::Session - new session every call

2004-10-16 Thread Cees Hek
a small app that replicates the problem and I'll see if I can recreate the problem. Cheers, -- Cees Hek - Web Archive: http://www.mail-archive.com/[EMAIL PROTECTED]/ http://marc.theaimsgroup.com/?l=cgiappr=1w=2

Re: [cgiapp] ANN: Plugin::AutoRunmode

2004-10-17 Thread Cees Hek
- Web Archive: http://www.mail-archive.com/[EMAIL PROTECTED]/ http://marc.theaimsgroup.com/?l=cgiappr=1w=2 To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Cees Hek

Re: [cgiapp] Building Complex Applications with C::A and helper modules

2004-10-03 Thread Cees Hek
Mark Stosberg wrote: On this list there was just a thread which brought to light how people access databases through CGI::Application. There were three primary groups of answers: 1. Custom SQL called directly from the CGI::Application project. 2. Using custom Data Access Objects to abstract

Re: [cgiapp] Hybrid static/dynamic site

2004-10-06 Thread Cees Hek
, although you will have to write a few of the extra bits yourself. -- Cees Hek - Web Archive: http://www.mail-archive.com/[EMAIL PROTECTED]/ http://marc.theaimsgroup.com/?l=cgiappr=1w=2 To unsubscribe, e-mail: [EMAIL

Re: [cgiapp] Can the moderator unsub this guy please?

2004-10-17 Thread Cees Hek
: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Cees Hek - Web Archive: http://www.mail-archive.com/[EMAIL PROTECTED]/ http://marc.theaimsgroup.com/?l=cgiappr=1w=2 To unsubscribe, e-mail

Re: [cgiapp] CGI::Application::Plugin::Session - new session every call

2004-10-18 Thread Cees Hek
On Mon, 18 Oct 2004 20:18:17 +1300, Dan Horne [EMAIL PROTECTED] wrote: Cees Hek wrote: Is it possible that you are using CGI::Simple instead of CGI? Ah, that's it! I thought CGI::Simple was a drop-in replacement for CGI if I didn't require the HTML functions (as per http

Re: [cgiapp] CGI::Application::Plugin::Session - new session every call

2004-10-18 Thread Cees Hek
or not, and handle the situation appropriately... That would solve the issues for people using CGI::Simple. I don't really want to do that, since I think the proper place to fix it is in CGI::Session, not in C::A::P::Session, but I guess I can always remove the checks if CGI::Session gets fixed. Cheers, -- Cees

[cgiapp] ANNOUNCE: CGI::Application::Plugin::Session 0.06

2004-10-19 Thread Cees Hek
module like CGI::Simple - Be more intelligent about choosing a default temporary directory for windows users (suggested by Dan Horne) - Add a doc note to warn users when they change the name of the cookie, to also notify CGI::Session-name -- Cees Hek

Re: [cgiapp] RFC - C::A::Plugin::Apache

2004-10-21 Thread Cees Hek
CGI.pm module. I think you can just look at $ENV{MOD_PERL} for whether mod_perl is running, and what version is being used. This would allow app developers to put the C::A::P::Apache plugin in all their apps, and use it in a CGI and mod_perl environment without any code changes. Cheers, -- Cees Hek

Re: [cgiapp] RFC - C::A::Plugin::Apache

2004-10-21 Thread Cees Hek
will get many useful suggestions on how to make it work seemlessly with mod_perl1 and mod_perl2. Cheers, -- Cees Hek - Web Archive: http://www.mail-archive.com/[EMAIL PROTECTED]/ http://marc.theaimsgroup.com/?l

Re: [cgiapp] RFC - C::A::Plugin::Apache

2004-10-24 Thread Cees Hek
file uploads). I think it just comes down to documentation. Make sure the developer knows what to expect when working in the different environments. Cheers, -- Cees Hek - Web Archive: http://www.mail-archive.com/[EMAIL

Re: [cgiapp] feedback on ::Plugin::ConfigAuto update (a use for register_hook?)

2004-10-26 Thread Cees Hek
we're modifying the constructor code anyway? Fair enough. I was sort of trying to follow the programming style that CGI::Application already uses, but your suggestion would work equally well. Cheers, -- Cees Hek - Web Archive

Re: [cgiapp] teardown with session

2004-10-26 Thread Cees Hek
. Use something like Apache::DBI if you want persistent database connections (since you are closing your DB connections, I assume you don't want persistent connections anyway). Cheers, -- Cees Hek - Web Archive: http://www.mail

Re: [cgiapp] teardown with session

2004-10-26 Thread Cees Hek
will always have fresh data on each request. That philosiphy has worked out well for me. The other big things to look out for with mod_perl are already solved for you just by using CGI::Application :) Cheers, -- Cees Hek - Web

Re: [cgiapp] User authentication

2004-10-29 Thread Cees Hek
Hi Drew, I have been hinting at an Authentication plugin for a while now, but haven't finished it yet. I did a little bit more work on it yesterday, but I don't have any docs, or any tests written for the module yet. I you also have a start on a module, maybe we can colaborate. From your

Re: [cgiapp] User authentication

2004-10-31 Thread Cees Hek
On Fri, 29 Oct 2004 11:16:30 -0400, Drew Taylor [EMAIL PROTECTED] wrote: On Fri, 29 Oct 2004 16:31:40 +1000, Cees Hek [EMAIL PROTECTED] wrote: Nice. At $dayjob I have my own version of require_authentication(), but I haven't (yet) needed group authentication. I've thought of using Role-based

Re: [cgiapp] feedback on ::Plugin::ConfigAuto update (a use for register_hook?)

2004-11-01 Thread Cees Hek
, then possibly the next callbacks don't get executed? Thanks for your input Cheers, -- Cees Hek - Web Archive: http://www.mail-archive.com/[EMAIL PROTECTED]/ http://marc.theaimsgroup.com/?l=cgiappr=1w=2

Re: [cgiapp] CGI::Session trouble

2004-11-02 Thread Cees Hek
in the session to identify the computer (even a second cookie with a unique ID that is stored in the session would do). Cheers, -- Cees Hek - Web Archive: http://www.mail-archive.com/[EMAIL PROTECTED]/ http

Re: [cgiapp] Plugin vs. Non-plugin (Specifically for Session)

2004-11-04 Thread Cees Hek
little work. It does a few simple checks to make sure the configuration info makes sense, and stores the config options away for later use. So I guess the lazy loading applies to the CGI::Session object, not necesarily the CGI::Application::Plugin::Session. -- Cees Hek

Re: [cgiapp] CAP::Apache and CAP::Session

2004-11-10 Thread Cees Hek
so it should work fine. However CGI::Minimal will not work, since it doesn't have a cookie method... There are probably other CGI like modules that won't work either. Cheers, -- Cees Hek - Web Archive: http://www.mail

Re: [cgiapp] CAP::Apache and CAP::Session

2004-11-10 Thread Cees Hek
soon, but patches are always welcome. -- Cees Hek - Web Archive: http://www.mail-archive.com/cgiapp@lists.erlbaum.net/ http://marc.theaimsgroup.com/?l=cgiappr=1w=2 To unsubscribe, e-mail: [EMAIL PROTECTED

Re: [cgiapp] CAP::Apache and CAP::Session

2004-11-16 Thread Cees Hek
. Michael: If you want to use something besides CGI.pm, why don't you make a wrapper class which is compatible with the former? I agree that this would probably be the ideal approach. Cheers, -- Cees Hek - Web Archive: http

Re: [cgiapp] CAP::Apache and CAP::Session

2004-11-16 Thread Cees Hek
is a great app and I have been using it for years, but unless you really need to dig into the guts of Apache to build your app, then there are other alternatives. Cheers, -- Cees Hek - Web Archive: http://www.mail-archive.com/cgiapp

Re: [cgiapp] dbh-quote error I can't see

2004-11-29 Thread Cees Hek
'); Which saves me a few keypresses, and I don't have to bother checking the docs on how header_type works everytime (I have a short memory ;) Just a couple of small suggestions that might make life a little bit easier. Cheers, -- Cees Hek

Re: [cgiapp] Re: 2 New(?) Ideas

2004-12-04 Thread Cees Hek
more complex) queries. Cheers, -- Cees Hek - Web Archive: http://www.mail-archive.com/cgiapp@lists.erlbaum.net/ http://marc.theaimsgroup.com/?l=cgiappr=1w=2 To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: [cgiapp] CAP::Apache

2004-12-05 Thread Cees Hek
. Michael, If you find any other compatibility issues between CAP::Session and CAP::Apache while you develop your compatibility layer, just let me know and we can try and resolve them before your next release. Cheers, -- Cees Hek

  1   2   3   4   >