Hi Sean,
I've been trying to run your update_handles script today
but am having difficulty getting it to work (error below).
Presumably something simple I'm not seeing - I know you said it may contain bugs.
> ./hdl-jython update_handles.py handle-list.txt
Exception in thread "main" Traceback (innermost
last):
File
"update_handles.py", line 56, in ?
File
"update_handles.py", line 39, in updateHandle
at
net.handle.hdllib.HandleResolver.resolveHandle(HandleResolver.java:486)
at
net.handle.hdllib.HandleResolver.resolveHandle(HandleResolver.java:524)
at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at
java.lang.reflect.Method.invoke(Method.java:601)
net.handle.hdllib.HandleException: HandleException
(HANDLE_DOES_NOT_EXIST)
I'm sure someone has successfully run this script. Any
pointers would be much appreciated.
Regards,
Peter
University College Dublin
-----Original Message-----
From: handle-info-admin@cnri.reston.va.us
[mailto:handle-info-admin@cnri.reston.va.us]
On Behalf Of Sean Reilly
Sent: 29 March 2012 17:02
To: Tim Donnelly
Cc: handle-info@cnri.reston.va.us
Subject: Re: [Handle-info] Batch query handles?
Hi Tim,
There is no batch-query mechanism in the handle server,
but requesting each individual handle should be a relatively lightweight
operation. I assume you'd want to take
some action that was different depending upon the current value(s) in the
handle, if it existed, so perhaps using a python script would be a more
flexible way to create your handles?
I've attached a script that might work, but I've only
written it from scratch so there are probably some bugs, but it might give an
idea for how a batch-updater might work.
Thanks,
Sean