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

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

parent 0c07df4b
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment