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, [])
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)