From: Barış Metin Date: Wed, 16 Dec 2009 12:06:39 +0000 (+0000) Subject: - handle list and tuple types X-Git-Tag: sfa-0.9-7~112 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=cc52d848bdd219fe5f403f5d01b742c5bc2ebd1b;hp=3f8968efcfd6badf007cf013687fbc9fc0a4f246;p=sfa.git - handle list and tuple types - add component to known interfaces --- diff --git a/wsdl/sfa2wsdl.py b/wsdl/sfa2wsdl.py index 0075cc48..21e09953 100755 --- a/wsdl/sfa2wsdl.py +++ b/wsdl/sfa2wsdl.py @@ -143,6 +143,8 @@ class WSDLGen: return "none" if arg_type == DictType: return "xsd:anyType" + if arg_type in (ListType, TupleType): + return "xsd:arrayType" elif arg_type == IntType or arg_type == LongType: return "xsd:int" elif arg_type == bool: @@ -324,6 +326,8 @@ def main(): help="Generate sm.wsdl") parser.add_option("-a", "--aggregate", action="store_true", dest="aggregate", help="Generate am.wsdl") + parser.add_option("-c", "--component", action="store_true", dest="component", + help="Generate cm.wsdl") parser.add_option("-l", "--lite", action="store_true", dest="lite", help="Generate LITE version of the interface, in which calls exclude credentials") (interface_options, args) = parser.parse_args()