Hi
As you may know I've been working on a project using soaplib. Recently it's
been put on hold, but I've put the code so far up on bitbucket, at
https://bitbucket.org/jfine/ou_lts_soap
My work so far shows some of the difficulties I have with soaplib, which you
might want to address or at least discuss. In this message I'll give three.
1. The name of a function is used as the key when forming a dictionary (even
though there's already a perfectly good key available).
2. I'd like to separate out the SOAP stuff into a single layer, into which I
can put non-soap-aware functions. In other words, I want an adapter.
3. In the interface there is, to my view, unecessary use of self.
Here's an example of creating an adapter (based on soaplib).
https://bitbucket.org/jfine/ou_lts_soap/src/96f7873fb915/ou_lts_soap/mathml.py
Here's an example of the use of the adapter.
https://bitbucket.org/jfine/ou_lts_soap/src/96f7873fb915/test_ou_lts_soap/test_mathml.py
And here's the complex stuff I did to make all this interface with soaplib.
https://bitbucket.org/jfine/ou_lts_soap/src/96f7873fb915/ou_lts_soap/tools.py
And here's where I have to give a function the right name.
https://bitbucket.org/jfine/ou_lts_soap/src/96f7873fb915/ou_lts_soap/tools.py#cl-160
I am interested in discussing this stuff, in part because I'm down to give a
training session on using classes at EuroPython and some aspects of what we
have here might make a good case study.
Best regards
Jonathan
--
The Open University is incorporated by Royal Charter (RC 000391), an exempt
charity in England & Wales and a charity registered in Scotland (SC 038302).
_______________________________________________
Soap mailing list
[email protected]
http://mail.python.org/mailman/listinfo/soap