Commit 80fa3ff4 authored by Antoine Millet's avatar Antoine Millet
Browse files

Renamed list to _list, created a new list method that calls _list.

parent 0c07df4b
Loading
Loading
Loading
Loading
+10 −8
Original line number Diff line number Diff line
@@ -85,14 +85,7 @@ class ClientHandler(OnlineCCHandler):

        return tuple(found_vm)

    @pure
    @listed
    def list(self, query):
        '''
        List all objects registered on this instance.
        '''

        logging.debug('Executed list function with query %s' % query)
    def _list(self, query):
        
        # Contains all the objects to be filted:
        objects = []
@@ -136,6 +129,15 @@ class ClientHandler(OnlineCCHandler):
        # Filter the objects with the query, and return it:
        return query.filter(objects)

    @pure
    @listed
    def list(self, query):
        '''
        List all objects registered on this instance.
        '''

        logging.debug('Executed list function with query %s' % query)
        return self._list(query)

class AuthenticationError(Exception):
    pass