[Bps-public-commit] r20162 - in RT-Extension-rt_cpan_org: html html/Callbacks/rt_cpan_org/autohandler

ruz at bestpractical.com ruz at bestpractical.com
Mon Nov 30 19:29:52 EST 2009


Author: ruz
Date: Mon Nov 30 19:29:51 2009
New Revision: 20162

Added:
   RT-Extension-rt_cpan_org/html/Callbacks/rt_cpan_org/autohandler/Default
Removed:
   RT-Extension-rt_cpan_org/html/autohandler
Modified:
   RT-Extension-rt_cpan_org/lib/RT/Extension/rt_cpan_org.pm

Log:
* delete autohandler overlay, use callback instead, doc this overlay

Added: RT-Extension-rt_cpan_org/html/Callbacks/rt_cpan_org/autohandler/Default
==============================================================================
--- (empty file)
+++ RT-Extension-rt_cpan_org/html/Callbacks/rt_cpan_org/autohandler/Default	Mon Nov 30 19:29:51 2009
@@ -0,0 +1,8 @@
+<%ARGS>
+$goto => undef
+</%ARGS>
+</%INIT>
+return unless $goto;
+
+$m->redirect( RT->Config->Get('WebBaseURL') . $goto );
+</%INIT>

Modified: RT-Extension-rt_cpan_org/lib/RT/Extension/rt_cpan_org.pm
==============================================================================
--- RT-Extension-rt_cpan_org/lib/RT/Extension/rt_cpan_org.pm	(original)
+++ RT-Extension-rt_cpan_org/lib/RT/Extension/rt_cpan_org.pm	Mon Nov 30 19:29:51 2009
@@ -46,19 +46,44 @@
 # 
 # END BPS TAGGED BLOCK }}}
 
+use 5.008003;
+use strict;
+use warnings;
+
 package RT::Extension::rt_cpan_org;
 
-use v5.8.3;
 our $VERSION = '0.02';
 
-1;
-
 =head1 NAME
 
 RT::Extension::rt_cpan_org - The customizations that turn a RT into a RT for rt.cpan.org
 
+=head1 DESCRIPTION
+
+=head1 OVERLAYS AND CUSTOMIZATIONS
+
+=head2 autohandler
+
+=over 4
+
+=item * C<$goto> argument
+
+=item * C<$nossl> argument and redirect to https in some
+cases
+
+=item * rewriting Web* options depending on schema (http/https)
+
+=item * XXX: old code was disabling everything related to
+SelfService. Not sure why. Should be checked.
+
+=back
+
+=cut
+
 =head1 AUTHOR
 
 Thomas Sibley E<lt>trs at bestpractical.comE<gt>
 
 =cut
+
+1;



More information about the Bps-public-commit mailing list