File: README.UPGRADING_TO_1.0

package info (click to toggle)
libapache2-sitecontrol-perl 1.05-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, forky, sid, trixie
  • size: 208 kB
  • sloc: perl: 558; makefile: 7
file content (21 lines) | stat: -rw-r--r-- 698 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Version 1.0 has a significant change from previous versions. AccessController
is dropped in favor of a module actually called SiteControl. This makes the
whole system work better in the Perl sense, and make version checking and
installation smoother with CPAN.

To upgrade:

1) Edit all of your modules that depend on 
   Apache2::SiteControl::AccessController, and change them to use 
   Apache2::SiteControl.
2) Make the same change in all of your pages. i.e.:

   $user = Apache2::SiteControl::AccessController->getPermissionManager($r)

   becomes:

   $user = Apache2::SiteControl->getPermissionManager($r)

   i.e. 
   
   perl -pi'.bak' 's/SiteControl::AccessController/SiteControl/' *.html