[orca/orca-gnome3: 30/87] Added plugin manager stuff in orca.py



commit ebbb7a59cad9fc25ef07d273d858de070b416cef
Author: Javier Hernández Antúnez <jhernandez emergya es>
Date:   Wed Mar 23 13:36:57 2011 +0100

    Added plugin manager stuff in orca.py

 src/orca/orca.py |   22 +++++++++++++++++-----
 1 files changed, 17 insertions(+), 5 deletions(-)
---
diff --git a/src/orca/orca.py b/src/orca/orca.py
index fa26427..ac6e31c 100644
--- a/src/orca/orca.py
+++ b/src/orca/orca.py
@@ -503,6 +503,17 @@ options = Options()
 if options.userPrefsDir:
     settings.userPrefsDir = options.userPrefsDir
 
+
+# From here, we're going to instantiate a Plugin Manager object
+# for interacting with plugins. The sense of this is to maintain
+# one instance and all orca modules can interact with, as same as
+# we're dealing with Settings Manager.
+# The main reason for be the first, is that settings manager needs
+# a Plugin Manager instance.
+#
+from pluglib.plugin_manager import ModulePluginManager 
+_pluginManager = ModulePluginManager()
+
 # This needs to occur prior to our importing anything which might in turn
 # import anything which might expect to be able to use the Settings Manager
 # You have been warned.
@@ -2317,11 +2328,12 @@ def main():
         loadUserSettings(skipReloadMessage=True)
         _settingsManager.setFirstStart()
 
-    # needed to load plugins (first time)
-    import pluglib
-    from pluglib.plugin_manager import plugmanager
-    
-    plugmanager.scan_plugins()
+# nacho's
+#    # needed to load plugins (first time)
+#    import pluglib
+#    from pluglib.plugin_manager import plugmanager
+#    
+#    plugmanager.scan_plugins()
 
     try:
         start(pyatspi.Registry) # waits until we stop the registry



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