If there are not check for '__qualname__' when I run ladon application using python 3.3 I get following exception for any exposed with ladonize method:
Traceback (most recent call last):
File "/home/roger/projects/ladon/frameworks/python/tests/ladon/server/wsgi_application.py", line 318, in __call__
self.import_services(self.service_list)
File "/home/roger/projects/ladon/frameworks/python/tests/ladon/server/wsgi_application.py", line 274, in import_services
__import__(service)
File "/home/roger/projects/ladon/frameworks/python/tests/services/attachmenttests.py", line 23, in <module>
class AttachmentTestService(object):
File "/home/roger/projects/ladon/frameworks/python/tests/services/attachmenttests.py", line 30, in AttachmentTestService
@ladonize(File,rtype=UploadFileResponse)
File "/home/roger/projects/ladon/frameworks/python/tests/ladon/ladonizer/decorator.py", line 88, in decorator
ladon_method_info = global_service_collection().add_service_method(f,*def_args,**def_kw)
File "/home/roger/projects/ladon/frameworks/python/tests/ladon/ladonizer/collection.py", line 133, in add_service_method
method = self.services[(src_fname,clsname)].add_method(f,*def_args,**def_kw)
File "/home/roger/projects/ladon/frameworks/python/tests/ladon/ladonizer/collection.py", line 325, in add_method
method = LadonMethodInfo(self,f,*def_args,**def_kw)
File "/home/roger/projects/ladon/frameworks/python/tests/ladon/ladonizer/collection.py", line 507, in __init__
self._multipart_response_required = sinfo.typemanager.analyze_param(self._rtype)
File "/home/roger/projects/ladon/frameworks/python/tests/ladon/types/typemanager.py", line 158, in analyze_param
self.analyze_class(param)
File "/home/roger/projects/ladon/frameworks/python/tests/ladon/types/typemanager.py", line 116, in analyze_class
raise NeedToDefineParseTimeException("class attributes on LadonTypes must be defined as types, lists.\\nclass: %s\\nattr: %s" % (cls.__name__,attr))\nladon.exceptions.types.NeedToDefineParseTimeException: class attributes on LadonTypes must be defined as types, lists.
class: UploadFileResponse\nattr: __qualname__
If there are not check for '__qualname__' when I run ladon application using python 3.3 I get following exception for any exposed with ladonize method:
Traceback (most recent call last): roger/projects/ ladon/framework s/python/ tests/ladon/ server/ wsgi_applicatio n.py", line 318, in __call__ import_ services( self.service_ list) roger/projects/ ladon/framework s/python/ tests/ladon/ server/ wsgi_applicatio n.py", line 274, in import_services _(service) roger/projects/ ladon/framework s/python/ tests/services/ attachmenttests .py", line 23, in <module> ervice( object) : roger/projects/ ladon/framework s/python/ tests/services/ attachmenttests .py", line 30, in AttachmentTestS ervice File,rtype= UploadFileRespo nse) roger/projects/ ladon/framework s/python/ tests/ladon/ ladonizer/ decorator. py", line 88, in decorator method_ info = global_ service_ collection( ).add_service_ method( f,*def_ args,** def_kw) roger/projects/ ladon/framework s/python/ tests/ladon/ ladonizer/ collection. py", line 133, in add_service_method (src_fname, clsname) ].add_method( f,*def_ args,** def_kw) roger/projects/ ladon/framework s/python/ tests/ladon/ ladonizer/ collection. py", line 325, in add_method (self,f, *def_args, **def_kw) roger/projects/ ladon/framework s/python/ tests/ladon/ ladonizer/ collection. py", line 507, in __init__ _multipart_ response_ required = sinfo.typemanag er.analyze_ param(self. _rtype) roger/projects/ ladon/framework s/python/ tests/ladon/ types/typemanag er.py", line 158, in analyze_param analyze_ class(param) roger/projects/ ladon/framework s/python/ tests/ladon/ types/typemanag er.py", line 116, in analyze_class seTimeException ("class attributes on LadonTypes must be defined as types, lists.\\nclass: %s\\nattr: %s" % (cls.__ name__, attr))\ nladon. exceptions. types.NeedToDef ineParseTimeExc eption: class attributes on LadonTypes must be defined as types, lists. nse\nattr: __qualname__
File "/home/
self.
File "/home/
__import_
File "/home/
class AttachmentTestS
File "/home/
@ladonize(
File "/home/
ladon_
File "/home/
method = self.services[
File "/home/
method = LadonMethodInfo
File "/home/
self.
File "/home/
self.
File "/home/
raise NeedToDefinePar
class: UploadFileRespo