[conduit: 4/138] Function to return all defined ModuleWrapper classes



commit b31fba6fbe9d2651fec7a4fbbe4a9de96ae58a87
Author: John Carr <john carr unrouted co uk>
Date:   Sun Apr 19 14:15:38 2009 +0100

    Function to return all defined ModuleWrapper classes
---
 test/soup/modules/__init__.py |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/test/soup/modules/__init__.py b/test/soup/modules/__init__.py
index 0c5b784..abb0025 100644
--- a/test/soup/modules/__init__.py
+++ b/test/soup/modules/__init__.py
@@ -37,3 +37,7 @@ class ModuleWrapper(object):
             elif t == CHANGE_DELETE:
                 self.delete(uid)
 
+def all():
+    """ Load all plugin wrappers and return everything that subclasses ModuleWrapper """
+    return ModuleWrapper.__classes__.__subclasses__
+



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]