[open-ils-commits] r1157 - servres/trunk/conifer/libsystems/evergreen (gfawcett)

svn at svn.open-ils.org svn at svn.open-ils.org
Tue Jan 4 23:06:27 EST 2011


Author: gfawcett
Date: 2011-01-04 23:06:24 -0500 (Tue, 04 Jan 2011)
New Revision: 1157

Modified:
   servres/trunk/conifer/libsystems/evergreen/item_status.py
Log:
bug in bookbag url importer

Modified: servres/trunk/conifer/libsystems/evergreen/item_status.py
===================================================================
--- servres/trunk/conifer/libsystems/evergreen/item_status.py	2011-01-05 04:06:21 UTC (rev 1156)
+++ servres/trunk/conifer/libsystems/evergreen/item_status.py	2011-01-05 04:06:24 UTC (rev 1157)
@@ -20,7 +20,7 @@
         if 'feed/bookbag' in url:
             #eg http://concat.ca/opac/extras/feed/bookbag/marcxml-full/60
             marc_url = re.sub(r'(.*/bookbag/)(.*?)(/.*)', r'\1marcxml-full\3', url)
-            xml = urllib2.urlopen(marc_url).read()
+            xml = unicode(urllib2.urlopen(marc_url).read(), 'utf-8')
         else:
             m = re.match(r'.*r=(\d+).*', url)
             item_id = m and m.group(1) or None



More information about the open-ils-commits mailing list