Hi,

is it possible to expose a class method like this:

    class AService(rpyc.Service):
        class exposed_A(A):
            @classmethod
            def exposed_initialize(cls, *args, **kwargs):
                return cls.initialize(*args, **kwargs)


I get this error:

/Volumes/DATA/Users/dechaume/Codes/pod/jpod/src/rpyc/core/vinegar.py:
42: DeprecationWarning: BaseException.message has been deprecated as
of Python 2.6
  attrval = getattr(val, name)
======= Remote traceback =======
Traceback (most recent call last):
  File "/Volumes/DATA/Users/dechaume/Codes/pod/jpod/src/rpyc/core/
protocol.py", line 223, in _dispatch_request
    res = self._HANDLERS[handler](self, *args)
  File "/Volumes/DATA/Users/dechaume/Codes/pod/jpod/src/rpyc/core/
protocol.py", line 432, in _handle_getattr
    return self._access_attr(oid, name, (), "_rpyc_getattr",
"allow_getattr", getattr)
  File "/Volumes/DATA/Users/dechaume/Codes/pod/jpod/src/rpyc/core/
protocol.py", line 395, in _access_attr
    raise AttributeError("cannot access %r" % (name,))
AttributeError: cannot access 'get'

Antoine.

Reply via email to