arskom / spyne

A transport agnostic sync/async RPC library that focuses on exposing services with a well-defined API using popular protocols.
http://spyne.io
Other
1.13k stars 313 forks source link

method doc Optimization Suggestions #642

Open alien10086 opened 4 years ago

alien10086 commented 4 years ago

My running environment django python 2.7 spyne 2.12.16 When I write it like this ` class SecManageObject(ServiceBase):

@rpc(Unicode, _returns=Iterable(Unicode))
def queryConfig(self, oprCode):
    '''
    安全管理中心查询参数配置信息
    '''
    yield "200"

` Keeps returning 500 errors without detailed error information After a period of error checking, I found that I could not process the document

When I write it like this ` class SecManageObject(ServiceBase):

@rpc(Unicode, _returns=Iterable(Unicode))
def queryConfig(self, oprCode):
    u'''
    安全管理中心查询参数配置信息
    '''
    yield "200"

` So I suggest throw it error message