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 CLI, BaseControl
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
48
49 - def help(self, args = None):
50 self.ctx.out("""
51 Syntax: %(program_name)s submit single command with args
52 submit
53
54 When run without arguments, submit shell is opened
55 which takes commands without executing them. On save,
56 the file is trasferred to the server, and executed.
57 """)
58
74
75 try:
76 register("submit", SubmitControl)
77 except NameError:
78 SubmitControl()._main()
79