2
# This file is part of GNU Enterprise.
4
# GNU Enterprise is free software; you can redistribute it
5
# and/or modify it under the terms of the GNU General Public
6
# License as published by the Free Software Foundation; either
7
# version 2, or (at your option) any later version.
9
# GNU Enterprise is distributed in the hope that it will be
10
# useful, but WITHOUT ANY WARRANTY; without even the implied
11
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12
# PURPOSE. See the GNU General Public License for more details.
14
# You should have received a copy of the GNU General Public
15
# License along with program; see the file COPYING. If not,
16
# write to the Free Software Foundation, Inc., 59 Temple Place
17
# - Suite 330, Boston, MA 02111-1307, USA.
19
# Copyright 2001-2005 Free Software Foundation
25
# Frontend to GnuRpc documentation commands.
29
# grpcdoc <module> <command> [ <grpc-file> [<output-file>] ]
30
# grpcdoc <module> help
36
from gnue.common.utils.FileUtils import dyn_import
38
def run (interface, command, *arguments):
40
commdriver = dyn_import("gnue.common.rpc.drivers.%s.RpcDoc" % (interface))
41
commdriver.doc(sys.stdout,command, *arguments)
42
except ImportError, err:
43
print _("GNUe RPC Documentation Generator")
45
print o(u_("Error: the module %s does not exist or cannot be loaded") % \
54
GNUe RPC Documentation Generator
57
grpcdoc generates documentation and IDLs based on an XML-based
61
grpcdoc <module> <command> [ <grpc-file> [<output-file>] ]
67
1. To generate documentation on the exposed XML-RPC services, run:
68
grpcdoc xmlrpc doc myapp.grpc
70
2. To generate a CORBA IDL definition, run:
71
grpcdoc corba idl myapp.grpc
73
3. To see what commands are available for the soap module, run:
80
if __name__ == '__main__':
82
if len(sys.argv) < 2 or \
83
string.lower(sys.argv[1]) == 'help' or \