lp:~luca-vs800/ladon/ladon
Adds to JSONSPCLIENT the capability to:
- handle multiple services from same url
- setup a callback function to handle a progress bar or something else
- the function save() for the attachment to save the single attachment
- the save_all for() function the response to save all the attachments at once.
- Get this branch:
- bzr branch lp:~luca-vs800/ladon/ladon
Branch merges
- Ladon Developer: Pending requested
-
Diff: 866 lines (+669/-15)10 files modifiedframeworks/python/examples/services/transferservice.py (+1/-0)
frameworks/python/examples/test_callback.py (+120/-0)
frameworks/python/examples/test_multi.py (+120/-0)
frameworks/python/setup.py (+1/-1)
frameworks/python/src/ladon/clients/jsonwsp.py (+43/-7)
frameworks/python/src/ladon/clients/jwspservice.py (+154/-0)
frameworks/python/src/ladon/interfaces/soap.py (+1/-1)
frameworks/python/src/ladon/tools/callback_file.py (+189/-0)
frameworks/python/src/ladon/tools/multiparthandler.py (+28/-6)
frameworks/python/src/ladon/types/attachment.py (+12/-0)
Recent revisions
- 119. By luca <email address hidden>
-
- jsonwsp.py Added the process_response parameter; a list of functions to call just before return the jsonwsp_response
def presponse(
jsonwsp_ response , client, service=None):
.....
return jsonwsp_responseclient = JSONWSPClient(
url=url, ... process_ response= [presponse] ) - 118. By luca <email address hidden>
-
- jsonwsp.py Added the process_response parameter; a list of functions to call just before return the jsonwsp_response
def presponse(
jsonwsp_ response , client, service=None):
.....
return jsonwsp_responseclient = JSONWSPClient(
url=url, ... process_ response= [presponse] ) - 117. By luca <email address hidden>
-
- Removed the *exec()* in jsonwsp.py
- Added MultiService feature in jsonwsp.py
- Added support for session id automatically passed if the SID parameter is
present in the function description.
It could be useful for user autentication.
- Added examples/test_multi. py (multi service example) - 113. By luca <email address hidden>
-
- Added a file-like object that supports a callback function so it's possible to show a progress bar during operations.
- Added a save function for the attachment type.
- Added a save_all function for the JSONWSPResponse object.(uses a X_FILENAME header to guess the attachment's name)
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp:ladon