[conduit/tracker] Horribleness because soup has different paths to conduit



commit bd84785f2ca82b794a809db508602c396a3869e6
Author: John Carr <john carr unrouted co uk>
Date:   Mon Jun 15 05:03:44 2009 +0100

    Horribleness because soup has different paths to conduit

 .../modules/TrackerModule/tralchemy/namespace.py   |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/conduit/modules/TrackerModule/tralchemy/namespace.py b/conduit/modules/TrackerModule/tralchemy/namespace.py
index 6996418..70a3ccb 100644
--- a/conduit/modules/TrackerModule/tralchemy/namespace.py
+++ b/conduit/modules/TrackerModule/tralchemy/namespace.py
@@ -51,9 +51,9 @@ class Importer(object):
     @staticmethod
     def find_module(name, path=None):
         #FIXME: This function is a bit of a hack
-        if not name.startswith("tralchemy."):
+        if not "tralchemy." in name:
             return None
-        name = name[10:]
+        name = name[name.find("tralchemy.")+10:]
         if name in ('namespace', 'core', 'dbus', 'uuid'):
             return None
         if '.' in name:



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