[open-ils-commits] r15160 - branches/rel_1_6_0/Open-ILS/src/support-scripts (erickson)

svn at svn.open-ils.org svn at svn.open-ils.org
Mon Dec 14 15:50:59 EST 2009


Author: erickson
Date: 2009-12-14 15:50:54 -0500 (Mon, 14 Dec 2009)
New Revision: 15160

Modified:
   branches/rel_1_6_0/Open-ILS/src/support-scripts/action_trigger_runner.pl
Log:
removed oils_header.pl dependency from action_trigger_runner

Modified: branches/rel_1_6_0/Open-ILS/src/support-scripts/action_trigger_runner.pl
===================================================================
--- branches/rel_1_6_0/Open-ILS/src/support-scripts/action_trigger_runner.pl	2009-12-14 20:50:42 UTC (rev 15159)
+++ branches/rel_1_6_0/Open-ILS/src/support-scripts/action_trigger_runner.pl	2009-12-14 20:50:54 UTC (rev 15160)
@@ -16,10 +16,11 @@
 use strict;
 use warnings;
 use Getopt::Long;
+use OpenSRF::System;
 use OpenSRF::AppSession;
 use OpenSRF::Utils::JSON;
 use OpenSRF::EX qw(:try);
-require 'oils_header.pl';
+use OpenILS::Utils::Fieldmapper;
 
 my $opt_lockfile = '/tmp/action-trigger-LOCK';
 my $opt_osrf_config = '/openils/conf/opensrf_core.xml';
@@ -153,7 +154,8 @@
 close F;
 
 try {
-    osrf_connect($opt_osrf_config);
+	OpenSRF::System->bootstrap_client(config_file => $opt_osrf_config);
+	Fieldmapper->import(IDL => OpenSRF::Utils::SettingsClient->new->config_value("IDL"));
     process_hooks();
     run_pending();
 } otherwise {



More information about the open-ils-commits mailing list