[conduit/gsoc09_alexandre] Fixed iPod module after factory split.



commit 54ae3378d503d77b4030d553856e63354f57f0d2
Author: Alexandre Rosenfeld <airmind gmail com>
Date:   Fri Jun 12 21:54:39 2009 -0300

    Fixed iPod module after factory split.

 conduit/ModuleWrapper.py                 |    2 +-
 conduit/modules/iPodModule/iPodModule.py |    4 +++-
 2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/conduit/ModuleWrapper.py b/conduit/ModuleWrapper.py
index e3f49a8..402d367 100644
--- a/conduit/ModuleWrapper.py
+++ b/conduit/ModuleWrapper.py
@@ -286,7 +286,7 @@ class ModuleWrapper:
         #    self.module = self.klass(self.cached_info, *self.initargs)
         #else:
         self.module = self.klass(*self.initargs)
-        log.critical("Module instantiated: %s (%s)" % (self.name, self.module))
+        log.critical("Module instantiated: %s" % (self.module))
         
     def is_pending(self):
         return self.module == None
diff --git a/conduit/modules/iPodModule/iPodModule.py b/conduit/modules/iPodModule/iPodModule.py
index 5ea2e94..43cec19 100644
--- a/conduit/modules/iPodModule/iPodModule.py
+++ b/conduit/modules/iPodModule/iPodModule.py
@@ -47,8 +47,10 @@ except ImportError:
 except locale.Error:
     errormsg = "iPod support disabled (Incorrect locale)"
 
+MODULES = {}
+
 if errormsg:
-    MODULES = {}
+    #MODULES = {}
     log.warn(errormsg)
     #Solve the initialization problem without gpod
     class gpod():



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