On Thu, 22 Sep 2005 15:16:08 -0400, Evan A. Zacks wrote:

Hi Evan

> Another issue is how to handle configuration. Right now the user

Cees Hek has just written CGI::Application::Plugin::Authentication and solved
this config problem in a way I believe you can adopt. Here's part of his demo:

    package MyLogin;
    use base qw(CGI::Application);
   use CGI::Application::Plugin::Authentication;
   my %config = (
        DRIVER => [ 'Generic', { cees => '123' } ],
        STORE  => ['Cookie', SECRET => 'X'],
        LOGOUT_RUNMODE => 'one',
    );
    MyLogin->authen->config(%config);
    MyLogin->authen->protected_runmodes('two');

In other words, his module imports authen() and you work via that().

So you import pdf() say.

Of course, this configures the plugin, not necessarily things such as the
downloaded file's name.

> This can get a bit messy, however. It would also be nice for the
> user to be able to specify the output filename, or specify some
> parameters specific to the selected converter. I don't know how
> many options are too many to handle in the import() method.

My major CGI::App currently only lets the user download *.csv files, and to be
able to add the dreaded pdf (to any app) would be good, but I certainly need to
be able to specify a file name.


--
Cheers
Ron Savage, [EMAIL PROTECTED] on 23/09/2005
http://savage.net.au/index.html
Let the record show: Microsoft is not an Australian company



---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/[email protected]/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to