Exemple #1
0
 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
Exemple #2
0
 class SomeService(ServiceBase):
     @srpc(MultiPolygon(2), _returns=MultiPolygon(2))
     def some_call(p):
         print p
         print type(p)
         assert isinstance(p, basestring)
         return p