- handle list and tuple types
authorBarış Metin <Talip-Baris.Metin@sophia.inria.fr>
Wed, 16 Dec 2009 12:06:39 +0000 (12:06 +0000)
committerBarış Metin <Talip-Baris.Metin@sophia.inria.fr>
Wed, 16 Dec 2009 12:06:39 +0000 (12:06 +0000)
- add component to known interfaces

wsdl/sfa2wsdl.py

index 0075cc4..21e0995 100755 (executable)
@@ -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()