On 06/25/12 21:19, C Anthony Risinger wrote:
I couldn't run your code, (I don't have the awesome package)
yeah if it's not obvious i changed the name, but that file is just
pure autogenerated Model definitions, so you can sub with any file
that contains request Models and corresponding METHOD+'Response'
Models, and it *should* work :-)
i know but that doesn't make my life any easier.
but the
responsible for this is the get_method_id in ServiceBase.
https://github.com/arskom/spyne/blob/master/spyne/service.py#L200
Does replacing the 'descriptor.function.__name__' with 'descriptor.name'
solve your problem?
eureka! yes, either changing to a set() or using descriptor.name
solves the issue, thanks!
so now i just need to crack the "self-import" problem ....
enable debug logging:
logging.getLogger('spyne.interface._base').setLevel(logging.DEBUG)
and look where the self import is coming from.
this is the line we're hunting for:
https://github.com/arskom/spyne/blob/db9085c2deb34fd44c2eb3bd00a31654db6282db/spyne/interface/_base.py#L322
burak
_______________________________________________
Soap mailing list
[email protected]
http://mail.python.org/mailman/listinfo/soap