1
2
3 """
4 submit plugin
5
6 Plugin read by omero.cli.Cli during initialization. The method(s)
7 defined here will be added to the Cli class for later use.
8
9 Copyright 2007 Glencoe Software, Inc. All rights reserved.
10 Use is subject to license terms supplied in LICENSE.txt
11
12 """
13
14 from omero.cli import BaseControl, CLI
15 import sys
16
17 prompt = "omero submit [%s]> "
18
19
20 -class Save(Exception):
22
23
26
27
49
50 HELP = """When run without arguments, submit shell is opened
51 which takes commands without executing them. On save,
52 the file is trasferred to the server, and executed."""
53
54
76
77 try:
78
79 pass
80 except NameError:
81 if __name__ == "__main__":
82 cli = CLI()
83 cli.register("submit", SubmitControl, HELP)
84 cli.invoke(sys.argv[1:])
85