[prev in list] [next in list] [prev in thread] [next in thread] 

List:       apache-modperl-dev
Subject:    [patch] lib/Apache/compat.pm (Apache::File)
From:       Stas Bekman <stas () stason ! org>
Date:       2002-12-01 3:53:25
[Download RAW message or body]

Should we explicitly alias the Apache::File methods to their new 
locations? In case somebody was explicitly making a call via 
Apache::File->method($r, ...) class method?

Index: lib/Apache/compat.pm
===================================================================
RCS file: /home/cvs/modperl-2.0/lib/Apache/compat.pm,v
retrieving revision 1.71
diff -u -r1.71 compat.pm
--- lib/Apache/compat.pm        23 Nov 2002 22:35:06 -0000      1.71
+++ lib/Apache/compat.pm        1 Dec 2002 03:51:49 -0000
@@ -414,15 +414,15 @@
  }

  # the following functions now live in Apache::Response
-# * discard_request_body
-# * meets_conditions
-# * set_content_length
-# * set_etag
-# * set_last_modified
-# * update_mtime
+*discard_request_body = \&Apache::Response::discard_request_body;
+*meets_conditions     = \&Apache::Response::meets_conditions;
+*set_content_length   = \&Apache::Response::set_content_length;
+*set_etag             = \&Apache::Response::set_etag;
+*set_last_modified    = \&Apache::Response::set_last_modified;
+*update_mtime         = \&Apache::Response::update_mtime;

  # the following functions now live in Apache::RequestRec
-# * mtime
+*mtime                = \&Apache::RequestRec::mtime;

  package Apache::Util;




__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic