change epicclient2.py to use pyhandle instead of b2handle
At the moment epicclient2.py tries to use b2handle. In the new version of b2safe pyhandle is being used. epicclient2.py is still delivered with the system. update the code so it will use pyhandle instead of b2handle. Change for instance:
from b2handle.handleclient import EUDATHandleClient
from b2handle.clientcredentials import PIDClientCredentials
from b2handle.handleexceptions import *
to:
from pyhandle.handleclient import PyHandleClient
from pyhandle.clientcredentials import PIDClientCredentials
from pyhandle.handleexceptions import *
Also change the appropiate calls in the code:
$ grep EUDAT epicclient2.py
...
client = EUDATHandleClient.instantiate_with_credentials(
client = EUDATHandleClient.instantiate_with_credentials(
client = EUDATHandleClient.instantiate_with_credentials(
client = EUDATHandleClient.instantiate_with_credentials(
client = EUDATHandleClient.instantiate_with_credentials(
client = EUDATHandleClient.instantiate_with_credentials(
client = EUDATHandleClient.instantiate_with_credentials(
...
Action plan:
- create a new branch from the devel branch.
- update here the code and test it
- merge the code in the new branch to the devel branch
- merge the devel branch to the master branch
Edited by Robert Verkerk