From 64cc9bf50aa051a6dc1b7521f2e5032c7e844d99 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 9 Mar 2014 02:22:09 +0100 Subject: m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/plugins/moc.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/plugins/moc.py b/src/plugins/moc.py index 35cca05..709192f 100644 --- a/src/plugins/moc.py +++ b/src/plugins/moc.py @@ -77,7 +77,7 @@ class MOC: # TODO add support for waiting for events def __getitem__(self, key): ''' - Get a detailing + Get a details @param key:str The key @return :str The value associated with the key @@ -90,6 +90,15 @@ class MOC: # TODO add support for waiting for events return self.__info[key] + def keys(self): + ''' + Get available detail keys + + @return :itr The keys + ''' + return self.__info.keys() + + @staticmethod def __interact(*args): ''' -- cgit v1.2.3-70-g09d2