Python 拉登扔了一个定语错误

Python 拉登扔了一个定语错误,python,soap,ladon,Python,Soap,Ladon,我试图让ladon工作,但是,我似乎无法正确定义服务 具体地说,即使有一个最小的测试用例,它也会抛出 Traceback (most recent call last): File "C:\Python33\lib\site-packages\ladon\server\wsgi_application.py", line 332, in __call__ self.import_services(self.service_list) File "C:\Python33\lib\s

我试图让ladon工作,但是,我似乎无法正确定义服务

具体地说,即使有一个最小的测试用例,它也会抛出

Traceback (most recent call last):
  File "C:\Python33\lib\site-packages\ladon\server\wsgi_application.py", line 332, in __call__
    self.import_services(self.service_list)
  File "C:\Python33\lib\site-packages\ladon\server\wsgi_application.py", line 288, in import_services
    __import__(service)
  File "D:\Workspaces\Python\SOAPManager.py", line 20, in <module>
    @ladonize(PORTABLE_STRING, PORTABLE_STRING, rtype=PORTABLE_STRING)
  File "C:\Python33\lib\site-packages\ladon\ladonizer\decorator.py", line 118, in decorator
    injector.__doc__ = ladon_method_info._doc
AttributeError: 'NoneType' object has no attribute '_doc'
SOAPManager.py中的最小测试用例:

from ladon.ladonizer import ladonize
from ladon.types.ladontype import LadonType
from ladon.compat import PORTABLE_STRING

@ladonize(PORTABLE_STRING, PORTABLE_STRING, rtype=PORTABLE_STRING)
def Authenticate(Username, Password):
    return "Test"
正在从
ladonize
decorator中引发错误。当试图建立服务的定义时,它似乎正在发生。具体来说,在ladon中,
decorator
调用
collection.add_service\u method
,它返回
None
,而不是方法。我想它的行号检查失败了

firstlineno = f.__code__.co_firstlineno
# get an ast-analyzed object of the source file
sinfo = self.source_info(src_fname)
...
for clsname,v in sinfo.items():
    if firstlineno>v[0] and firstlineno<=v[1]:
firstlineno=f.\uuuuuuuuuuuuuuuuuuuuuuuuu.co\ufirstlineno
#获取源文件的ast分析对象
sinfo=self.source\u info(src\u fname)
...
对于clsname,sinfo.items()中的v:
如果firstlineno>v[0]且firstlineno
firstlineno = f.__code__.co_firstlineno
# get an ast-analyzed object of the source file
sinfo = self.source_info(src_fname)
...
for clsname,v in sinfo.items():
    if firstlineno>v[0] and firstlineno<=v[1]: