On Tue, 20 Jan 2009 14:23:15 -0500, Ed Barrett <[email protected]> wrote:
-- F. Edward Barrett, Network Specialist Traverse Area District Library -- <http://tadl.tcnet.org> "Technology is a word that describes something that doesn't work yet." -- Douglas Adams[email protected] 1/20/2009 11:31 AM >>><snip> I'd be interested to see what types of errors you are seeing. (Sorry I missed you in IRC...) My pastebins are still available. The first one[0], below, contains the patch I came up with for constrictor/contrib/evergreen/eg_utils.py to get things to the point of being able to pull the initial fm_IDL.xml file from the server, and the results of running the fetch_user_groups test. fm_IDL.xml was cached at the time I posted that. That was using the current revision of constrictor and the perl libraries from opensrf0.9/evergreen1.2.4.0. The second pastebin[1] is what I get when I run the current constrictor with the libraries from opensrf1.0.1/evergreen1.4.0.0rc2. It looks like the same error to me, with some missing schema too. [0] http://paste.lisp.org/display/73700 [1] http://paste.lisp.org/display/73886
A big difference between Evergreen 1.2 and 1.4 is how it transports data over the network. The OpenSRF 1.0/trunk (== Evergreen 1.4) Python client libraries cannot understand the JSON-encoded data produced by OpenSRF 0.9 (== Evergreen 1.2). However, there is a separate XML encoding OpenSRF supports that is consistent across versions. To use Constrictor with a 1.2 Evergreen server, you have to use "XML" for the evergreen.netProtocol property.
Attached is a sample constrictor.properties file that works on demo.gapines.org (Evergreen 1.2.4) and OpenSRF/Evergreen trunk Python client libraries. No changes were made to any of the code.
To work with your server, you will need to change the evergreen.server and evergreen.workstation properties. You may also need to change evergreen.username and evergreen.password, since my file uses the default admin.
Note that XML is bulkier than JSON, so requests as a whole may be a little slower.
-b -- Bill Erickson | VP, Software Development & Integration | Equinox Software, Inc. / The Evergreen Experts | phone: 877-OPEN-ILS (673-6457) | email: [email protected] | web: http://esilibrary.com
constrictor.properties
Description: Binary data
