Package omero.api
Class Callback_IScript_getScriptsByMimetype
- java.lang.Object
-
- IceInternal.CallbackBase
-
- IceInternal.TwowayCallback
-
- omero.api.Callback_IScript_getScriptsByMimetype
-
- All Implemented Interfaces:
Ice.TwowayCallback,Ice.TwowayCallbackArg1<java.util.List<OriginalFile>>,Ice.TwowayCallbackArg1UE<java.util.List<OriginalFile>>
public abstract class Callback_IScript_getScriptsByMimetype extends IceInternal.TwowayCallback implements Ice.TwowayCallbackArg1UE<java.util.List<OriginalFile>>
This method returns official server scripts identified with the specified extension as a list ofOriginalFileobjects. These scripts will be executed by the server if submitted viarunScript. The input parameters necessary for proper functioning can be retrieved viagetParams. TheOriginalFile.pathvalue can be used in other official scripts via the language specific import command, since the script directory will be placed on the appropriate environment path variable.scripts = scriptService.getScripts("py") for script in scripts: text = scriptService.getScriptText(script.id.val) path = script.path.val\[1:\] # First symbol is a "/" path = path.replace("/",".") print "Possible import: %s" % path
-
-
Constructor Summary
Constructors Constructor Description Callback_IScript_getScriptsByMimetype()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void__completed(Ice.AsyncResult __result)
-