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