Package omero :: Package plugins :: Module script
[hide private]
[frames] | no frames]

Module script

source code

script plugin

Plugin read by omero.cli.Cli during initialization. The method(s) defined here will be added to the Cli class for later use.

The script plugin is used to run arbitrary blitz scripts which take as their sole input Ice configuration arguments, including --Ice.Config=file1,file2.

The first parameter, the script itself, should be natively executable on a given platform. I.e. invokable by subprocess.call([file,...])

Copyright 2008 Glencoe Software, Inc. All rights reserved. Use is subject to license terms supplied in LICENSE.txt

Classes [hide private]
  ScriptControl
Variables [hide private]
  HELP = """Support for launching, uploading and otherwise manag...
  DEMO_SCRIPT = """#!/usr/bin/env pyt...
  RE0 = re.compile("\s*script\s+upload\s*")
  RE1 = re.compile("\s*script\s+upload\s+--official\s*")

Imports: exceptions, subprocess, re, os, sys, signal, time, atexit, CLI, BaseControl, SessionsStore, Action, shlex, wraps, path


Variables Details [hide private]

HELP

Value:
"""Support for launching, uploading and otherwise managing OMERO.scrip\
ts"""

DEMO_SCRIPT

Value:
"""#!/usr/bin/env python
import omero
import omero.rtypes as rtypes
import omero.scripts as scripts

o = scripts.Long("opt", min=0, max=5)
a = scripts.String("a", values=("foo", "bar"), optional=False)
b = scripts.Long("b").out()
...