Skip Menu |
 
rt.cpan.org will be shut down on March 1st, 2021.

This queue is for tickets about the CGI-Application-Plugin-Apache CPAN distribution.

Report information
The Basics
Id: 8419
Status: resolved
Priority: 0/
Queue: CGI-Application-Plugin-Apache

People
Owner: Nobody in particular
Requestors: william [...] knowmad.com
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 0.09
Fixed in: (no value)

Attachments


Subject: Calling dump_html generates errors
Download (untitled) / with headers
text/plain 478b
Michael, Still going through my code to replace my use of CGI.pm with Apache::Request. Discovered that calling C::A's dump_html method tries to call $query->Dump which is not defined by Apache::Request. Any ideas for handling these kinds of errors besides not calling the methods? Perhaps a list of non-functional methods would be helpful in the POD. Another thought is to create a subclass of Apache::Request which supports these non-std methods that CGI::App uses. William
From: william [...] knowmad.com
Download (untitled) / with headers
text/plain 353b
Michael, I decided to make a patch to the POD to help me remember what I had to change to get my code working under the Apache::* modules. I'm not that good with POD formatting so please edit if you know a better way to display this info. Let me know if you think this info belongs in a separate doc (e.g., C::A::P::Apache::Tutorial). Thanks, William
Download Apache.pm.diff
text/x-diff 1.2k
--- CGI-Application-Plugin-Apache.pm.orig 2004-11-13 18:06:27.000000000 -0500 +++ Apache.pm 2004-11-13 18:15:42.000000000 -0500 @@ -395,6 +395,16 @@ But it's really up to you. +=head1 UNSUPPORTED CGI::Application METHODS + +The following CGI::Application methods are not currently supported due to dependence on methods in CGI.pm which are not supported by Apache::Request. + +=over + +=item dump_html + +=back + =head1 COMPATIBILITY Upon using this module you completely leave behind the world of L<CGI.pm|CGI>. Don't look back or @@ -433,6 +443,20 @@ If for some reason you are using this plugin in a non-mod_perl environment, it will try to do the right thing by simply doing nothing :) +=head1 MIGRATING TO APACHE::* MODULES + +If you are used to CGI.pm, migrating to the Apache::* modules will entail a few changes. The following is a list of changes you will need to make (see COMPATIBILITY if you want to support both CGI.pm and Apache::*): + +=over + +=item $q->url ==> $q->uri (see Apache::URI) + +=item $q->delete('rm'); ==> $q->parms->unset('rm'); + +=item $q->delete ==> $q->parms->clear(); + +=back + =head1 AUTHOR Michael Peters <mpeters@plusthree.com>


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.