|
|
Choosing A Webhost: |
Re: RFC: CGI::Application::Plugin::Output::PDF: msg#00136lang.perl.modules.cgi-appplication
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, ron@xxxxxxxxxxxxx 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/cgiapp@xxxxxxxxxxxxxxxxx/ http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2 To unsubscribe, e-mail: cgiapp-unsubscribe@xxxxxxxxxxxxxxxxx For additional commands, e-mail: cgiapp-help@xxxxxxxxxxxxxxxxx
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | RFC: CGI::Application::Plugin::Output::PDF, Evan A. Zacks |
|---|---|
| Next by Date: | Re: RFC: CGI::Application::Plugin::Output::PDF, Ron Savage |
| Previous by Thread: | RFC: CGI::Application::Plugin::Output::PDF, Evan A. Zacks |
| Next by Thread: | Re: RFC: CGI::Application::Plugin::Output::PDF, Evan A. Zacks |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |