class SomeService(Service): @srpc(MultiPolygon(3), _returns=MultiPolygon(3)) def some_call(p): print(p) print(type(p)) assert isinstance(p, six.string_types) return p
class SomeService(ServiceBase): @srpc(MultiPolygon(2), _returns=MultiPolygon(2)) def some_call(p): print p print type(p) assert isinstance(p, basestring) return p