|
@@ -12,9 +12,10 @@ class orthancQR:
|
|
|
fconfig=os.path.join(os.path.expanduser('~'),'.labkey',f'{server}.json')
|
|
|
self.net.init(fconfig)
|
|
|
|
|
|
- def addModality(self,name,aet,host,port):
|
|
|
+ def addModality(self,name,v):
|
|
|
+ #add modality with the name name and settings as shown below
|
|
|
+ #v={"AET":aet,"Host":host,"Port":port}
|
|
|
apiURL='/'.join([self.net.getCoreURL(),'modalities',name])
|
|
|
- v={"AET":aet,"Host":host,"Port":port}
|
|
|
response=self.net.put(apiURL,json.dumps(v),'json',timeout=urllib3.util.Timeout(read=0.5))
|
|
|
|
|
|
def removeModality(self,name):
|