[open-ils-commits] r19309 - trunk/Open-ILS/src/edi_translator (gmc)

svn at svn.open-ils.org svn at svn.open-ils.org
Wed Jan 26 14:05:56 EST 2011


Author: gmc
Date: 2011-01-26 14:05:52 -0500 (Wed, 26 Jan 2011)
New Revision: 19309

Modified:
   trunk/Open-ILS/src/edi_translator/edi_webrick.rb
Log:
remove redundant finalize

Already handled by OpenILS::Mapper, and has the effect
of making a parsing bug in edi4r worse by causing
question marks in the EDI data to be escaped multiple
times.

Signed-off-by: Galen Charlton <gmc at esilibrary.com>

Modified: trunk/Open-ILS/src/edi_translator/edi_webrick.rb
===================================================================
--- trunk/Open-ILS/src/edi_translator/edi_webrick.rb	2011-01-26 16:35:18 UTC (rev 19308)
+++ trunk/Open-ILS/src/edi_translator/edi_webrick.rb	2011-01-26 19:05:52 UTC (rev 19309)
@@ -101,7 +101,7 @@
 servlet.add_handler("json2edi"  ) { |a_string|
   File.open('/tmp/ruby_json2edi.tmp', 'w') {|f| f.write(a_string) }      # debugging, so we can compare what we rec'd w/ the orig. file
   @map = OpenILS::Mapper.from_json(a_string)
-  @map.finalize.to_s
+  @map.to_s
 }
 servlet.add_introspection
 



More information about the open-ils-commits mailing list