Commit 890f2e45 authored by Antoine Millet's avatar Antoine Millet
Browse files

Added "listed" decorator on functions and version handler methods.

parent f0f4311b
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -67,6 +67,7 @@ class CCHandler(RpcHandler):
            logging.debug('Called %s.%s', self.__class__.__name__, name)
            return super(CCHandler, self).__getitem__(name)

    @listed
    def functions(self, conn):
        '''
        Show the list of functions available to the peer.
@@ -88,6 +89,7 @@ class CCHandler(RpcHandler):

        return cmd_list

    @listed
    def version(self, conn):
        '''
        Return the current server version.