예제 #1
0
def getServiceRequestTypeDefRecursive(servicetype):
    """ Returns a list of typedef dicts for this type and all contained type fields """
    # Get an instance of the service request class and get its typedef
    instance = registry.getServiceRequestInstance(servicetype)
    typedef = _getTypeDef(instance)
    
    # Return the list of sub-typedefs
    return _getSubTypeDefsRecursive(typedef, [])
예제 #2
0
def getServiceRequestTypeDef(servicetype):
    """ Returns a typedef dict for the service request class for the specified service type """
    # Get an instance of the service request class and return its typedef
    instance = registry.getServiceRequestInstance(servicetype)
    return _getTypeDef(instance)