[Opensrf-commits] r1133 - in trunk/src/perlmods/OpenSRF: . DomainObject Transport/SlimJabber

svn at svn.open-ils.org svn at svn.open-ils.org
Tue Nov 20 15:06:37 EST 2007


Author: miker
Date: 2007-11-20 14:49:03 -0500 (Tue, 20 Nov 2007)
New Revision: 1133

Modified:
   trunk/src/perlmods/OpenSRF/DomainObject/oilsMessage.pm
   trunk/src/perlmods/OpenSRF/Transport.pm
   trunk/src/perlmods/OpenSRF/Transport/SlimJabber/Client.pm
   trunk/src/perlmods/OpenSRF/Transport/SlimJabber/MessageWrapper.pm
Log:
still working on the perl locale stuff

Modified: trunk/src/perlmods/OpenSRF/DomainObject/oilsMessage.pm
===================================================================
--- trunk/src/perlmods/OpenSRF/DomainObject/oilsMessage.pm	2007-11-20 18:57:16 UTC (rev 1132)
+++ trunk/src/perlmods/OpenSRF/DomainObject/oilsMessage.pm	2007-11-20 19:49:03 UTC (rev 1133)
@@ -181,10 +181,12 @@
 	my $session = shift;
 
 	my $mtype = $self->type;
-	my $locale = $self->sender_locale;
-	my $api_level = $self->api_level || 1;;
+	my $locale = $self->sender_locale || '';
+	my $api_level = $self->api_level || 1;
 	my $tT = $self->threadTrace;
 
+    $logger->debug("Message locale is $locale", DEBUG);
+
 	$session->last_message_type($mtype);
 	$session->last_message_api_level($api_level);
 	$session->last_threadTrace($tT);

Modified: trunk/src/perlmods/OpenSRF/Transport/SlimJabber/Client.pm
===================================================================
--- trunk/src/perlmods/OpenSRF/Transport/SlimJabber/Client.pm	2007-11-20 18:57:16 UTC (rev 1132)
+++ trunk/src/perlmods/OpenSRF/Transport/SlimJabber/Client.pm	2007-11-20 19:49:03 UTC (rev 1133)
@@ -406,7 +406,6 @@
 	my $thread = $params{'thread'} || "";
 	my $router_command = $params{'router_command'} || "";
 	my $router_class = $params{'router_class'} || "";
-	my $locale = $params{'locale'} || "";
 
 	my $msg = OpenSRF::Transport::SlimJabber::MessageWrapper->new;
 
@@ -415,7 +414,6 @@
 	$msg->setBody( $body );
 	$msg->set_router_command( $router_command );
 	$msg->set_router_class( $router_class );
-	$msg->set_locale( $locale );
     $msg->set_osrf_xid($logger->get_osrf_xid);
 
 	$logger->transport( 

Modified: trunk/src/perlmods/OpenSRF/Transport/SlimJabber/MessageWrapper.pm
===================================================================
--- trunk/src/perlmods/OpenSRF/Transport/SlimJabber/MessageWrapper.pm	2007-11-20 18:57:16 UTC (rev 1132)
+++ trunk/src/perlmods/OpenSRF/Transport/SlimJabber/MessageWrapper.pm	2007-11-20 19:49:03 UTC (rev 1133)
@@ -122,16 +122,4 @@
    $self->{msg_node}->getAttribute('osrf_xid');
 }
 
-sub set_locale {
-   my( $self, $xid ) = @_;
-   $self->{msg_node}->setAttribute( locale => $xid );
-}
-
-
-sub get_locale {
-   my $self = shift;
-   $self->{msg_node}->getAttribute('locale');
-}
-
-
 1;

Modified: trunk/src/perlmods/OpenSRF/Transport.pm
===================================================================
--- trunk/src/perlmods/OpenSRF/Transport.pm	2007-11-20 18:57:16 UTC (rev 1132)
+++ trunk/src/perlmods/OpenSRF/Transport.pm	2007-11-20 19:49:03 UTC (rev 1133)
@@ -87,7 +87,6 @@
 	# Extract message information
 	my $remote_id	= $helper->get_remote_id();
 	my $sess_id	= $helper->get_sess_id();
-	my $locale	= $helper->get_locale();
 	my $body	= $helper->get_body();
 	my $type	= $helper->get_msg_type();
 
@@ -153,9 +152,6 @@
 		}
 	}
 
-    # set the locale for the session, if passed
-    $app_session->session_locale($locale) if ($locale);
-
 	# cycle through and pass each oilsMessage contained in the message
 	# up to the message layer for processing.
 	for my $msg (@$doc) {



More information about the opensrf-commits mailing list