XMLRPCGateway Improvement

Bug #903020 reported by Jason Stephenson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Evergreen
Invalid
Wishlist
Unassigned

Bug Description

The below branch adds a fieldmap_struct function to XMLRPCGateway.pm. It also modifies the unwrap_perl function to use the fieldmap_struct function to create Fieldmapper objects for RPC::XML::struct objects whose __class__ is a valid Fieldmapper id.

This permits update and create methods to work over XML-RPC. (Well, update is easier than create.)

This branch requires that Fieldmapper-class-for-hint branch is also applied.

The branch is available from git://git.evergreen-ils.org/working/Evergreen.git in the user/dyrcona/xml-rpc-gateway-improvement branch.

I am attaching a program that you can use to test it. It will require you to pass a hostname, user, password and workstation id on the command line. It will then authenticate, retrieve the user information for the logged in user, change the first and last name for the user to be all lower case, and then update the user in the database. Stupid, but demonstrates the code working or not.

Revision history for this message
Jason Stephenson (jstephenson) wrote :
Revision history for this message
Jason Stephenson (jstephenson) wrote :

Never mind this implementation. I think most of this code should be moved to Fieldmapper, so I'll implement this again.

Changed in evergreen:
status: New → Invalid
tags: removed: pullrequest
Changed in evergreen:
status: Invalid → New
tags: added: pullrequest
Changed in evergreen:
status: New → Invalid
Revision history for this message
Jason Stephenson (jstephenson) wrote :

Resurrecting this three-year-old bug because I will actually implement the improvement now that from_hash has gone into the Perl Fieldmapper.

Changed in evergreen:
status: Invalid → Triaged
tags: removed: pullrequest
Revision history for this message
Jason Stephenson (jstephenson) wrote :

Never mind. I can't even get a simple login to work any more. I'm not really interested in using XML-RPC anyway.

Think I'll focus anything that I was going to do in that direction on the translator.

Changed in evergreen:
status: Triaged → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.