def GetVmodlType(name):
 if isinstance(name, type):
  return name
 typ = vmodlTypes.get(name)
 if typ:
  return typ
 isArray = name.endswith('[]')
 if isArray:
  name = name[:(-2)]
 (ns, wsdlName) = _GetWsdlInfo(name)
 try:
  typ = GetWsdlType(ns, wsdlName)
 except KeyError:
  raise KeyError(name)
 if typ:
  return ((isArray and typ.Array) or typ)
 else:
  raise KeyError(name)

def GetVmodlType ( name ) : if isinstance ( name , type ) : return name typ = vmodlTypes . get ( name ) if typ : return typ isArray = name . endswith ( '[]' ) if isArray : name = name [ : ( - 2 ) ] ( ns , wsdlName ) = _GetWsdlInfo ( name ) try : typ = GetWsdlType ( ns , wsdlName ) except KeyError : raise KeyError ( name ) if typ : return ( ( isArray and typ . Array ) or typ ) else : raise KeyError ( name )
get type from vmodl name .