[interchange-cvs] interchange - racke modified 2 files

interchange-cvs at icdevgroup.org interchange-cvs at icdevgroup.org
Fri Feb 15 18:50:52 EST 2008


User:      racke
Date:      2008-02-15 23:50:52 GMT
Modified:  .        WHATSNEW-5.5
Modified:  lib/Vend Dispatch.pm
Log:
Renamed catalog_init SpecialSub to request_init to accommodate for a hook
called after catalog configuration (#160).

Revision  Changes    Path
1.93      +3 -0      interchange/WHATSNEW-5.5


rev 1.93, prev_rev 1.92
Index: WHATSNEW-5.5
===================================================================
RCS file: /var/cvs/interchange/WHATSNEW-5.5,v
retrieving revision 1.92
retrieving revision 1.93
diff -u -r1.92 -r1.93
--- WHATSNEW-5.5	15 Feb 2008 21:25:28 -0000	1.92
+++ WHATSNEW-5.5	15 Feb 2008 23:50:51 -0000	1.93
@@ -96,6 +96,9 @@
 
 * Job server displays catalog and job name in $0.
 
+* Renamed catalog_init SpecialSub to request_init to accommodate for a hook
+  called after catalog configuration (#160).
+
 UserTag
 -------
 



1.94      +5 -5      interchange/lib/Vend/Dispatch.pm


rev 1.94, prev_rev 1.93
Index: Dispatch.pm
===================================================================
RCS file: /var/cvs/interchange/lib/Vend/Dispatch.pm,v
retrieving revision 1.93
retrieving revision 1.94
diff -u -r1.93 -r1.94
--- Dispatch.pm	9 Jan 2008 09:51:05 -0000	1.93
+++ Dispatch.pm	15 Feb 2008 23:50:52 -0000	1.94
@@ -1,6 +1,6 @@
 # Vend::Dispatch - Handle Interchange page requests
 #
-# $Id: Dispatch.pm,v 1.93 2008/01/09 09:51:05 racke Exp $
+# $Id: Dispatch.pm,v 1.94 2008/02/15 23:50:52 racke Exp $
 #
 # Copyright (C) 2002-2008 Interchange Development Group
 # Copyright (C) 2002 Mike Heins <mike at perusion.net>
@@ -26,7 +26,7 @@
 package Vend::Dispatch;
 
 use vars qw($VERSION);
-$VERSION = substr(q$Revision: 1.93 $, 10);
+$VERSION = substr(q$Revision: 1.94 $, 10);
 
 use POSIX qw(strftime);
 use Vend::Util;
@@ -1152,8 +1152,8 @@
 #show_times("end cgi and config mapping") if $Global::ShowTimes;
 	open_database();
 
-	if (my $subname = $Vend::Cfg->{SpecialSub}{catalog_init}) {
-#::logDebug(errmsg("running subroutine '%s' for %s", $subname, 'catalog_init'));
+	if (my $subname = $Vend::Cfg->{SpecialSub}{request_init}) {
+#::logDebug(errmsg("running subroutine '%s' for %s", $subname, 'request_init'));
 		my $sub = $Vend::Cfg->{Sub}{$subname} || $Global::GlobalSub->{$subname};
 		my $status;
 		eval {
@@ -1161,7 +1161,7 @@
 		};
 
 		if($@) {
-			::logError("Error running %s subroutine %s: %s", 'catalog_init', $subname, $@);
+			::logError("Error running %s subroutine %s: %s", 'request_init', $subname, $@);
 		}
 	}
 








More information about the interchange-cvs mailing list