xmlrpc client and server updates to make examples functional again - #595
Conversation
…. Update to current xmlrpc API there.
```
Error 200:SYSTEM_ERROR
DEBUG: [{'object_type': 'error_text', 'text':
"Could not import module! shared.functionality.X: No module named 'shared'"}]
```
errors on attempted use.
…sting with jsonrpc. Reinsert recently pruned parse_qs helper in xmlrpcbackup example.
…n the general xmlrpc client example. Add text-mode cat for symmetry with binary. Show the actual error from jobstatus for sites where jobs are disabled.
…eported in github actions. Bump at-job date to far future.
…rpcX examples relying on the shared connection init from xmlrpcsslclient.
…d enable reuse in the `xmlrpc.client.ServerProxy` calls.
…d enable reuse in the `xmlrpc.client.ServerProxy` calls like we do in #595 now.
Martin-Rehr
left a comment
There was a problem hiding this comment.
Approved with inline and final comments:
-
Should 'Error calling function' return an output object ?
migrid-sync/mig/shared/rpcfunctions.py
Line 129 in cff9685
-
force_utf8_rec is now an unused import ?
* Change the `main` function calling error to use and return `output_object`. * Drop unused `force_utf8_rec` helper function along with a few bare `except` lint fixes.
1: yes, good catch. Fixed. |
…`cacert` conf value with more care. Added a docstring line about it, too.
|
There is still some python2 cruft e.g. in the imports to address remaining |
#595: add more robust `cacert` conf handling and add missing retval unpacking.
…API (#596) * Migrate jsonrpclib to maintained fork and sync iclient and server interfaces to current API and reuse more from xmlrpcX example scripts. * Pull in fixes and polish from #595 xmlrpc client. * Pull in the rpcfunctions.py fixes from #595 also needed here. * Drop the explicit jsonrpc protocol cap and let it use protocol 2.0 since it also just works now. * Drop ancient python 2.6 compatibility. * Refactor `SafeCertTransport` to handle `ssl_ctx` init consistently and enable reuse in the `xmlrpc.client.ServerProxy` calls like we do in #595 now. * Address a few review feedback suggestions (thanks @Martin-Rehr) like in #595: add more robust `cacert` conf handling and add missing retval unpacking.
Sync xmlrpc examples to use single shared setup from original example. Update to current xmlrpc API there.
Address some backend stub import issues (#594) when attempting to run the xmlrpc client examples.