[gnue] r9811 - in trunk/gnue-common: src/apps utils/helpers

[email protected]
Newsgroups gmane.comp.cms.gnue.cvs
Message-ID <[email protected]>
Author: johannes
Date: 2007-11-15 03:32:30 -0600 (Thu, 15 Nov 2007)
New Revision: 9811

Modified:
   trunk/gnue-common/src/apps/plugin.py
   trunk/gnue-common/utils/helpers/info.py
Log:
Rename list() method into list_plugins()


Modified: trunk/gnue-common/src/apps/plugin.py
===================================================================
--- trunk/gnue-common/src/apps/plugin.py	2007-11-15 08:56:00 UTC (rev 9810)
+++ trunk/gnue-common/src/apps/plugin.py	2007-11-15 09:32:30 UTC (rev 9811)
@@ -62,7 +62,7 @@
 from types import ModuleType
 from gnue.common.base import errors, i18n
 
-__all__ = ['LoadError', 'list', 'find']
+__all__ = ['LoadError', 'list_plugins', 'find']
 
 # =============================================================================
 # Exceptions
@@ -108,7 +108,7 @@
 # List all available plugins
 # -----------------------------------------------------------------------------
 
-def list(base, identifier, try_to_init=True):
+def list_plugins(base, identifier, try_to_init=True):
     """
     List all available plugins.
 
@@ -371,7 +371,7 @@
     if len(sys.argv) == 1:
 
         # List all modules
-        for (iname, iresult) in(list(basep, 'Connection')).items():
+        for (iname, iresult) in(list_plugins(basep, 'Connection')).items():
             print iname[len(basep)+1:]  + ":",
             if isinstance(iresult, ModuleType):
                 print "ok"

Modified: trunk/gnue-common/utils/helpers/info.py
===================================================================
--- trunk/gnue-common/utils/helpers/info.py	2007-11-15 08:56:00 UTC (rev 9810)
+++ trunk/gnue-common/utils/helpers/info.py	2007-11-15 09:32:30 UTC (rev 9811)
@@ -22,7 +22,7 @@
       self.extraname = ''
     self.__subinfos = {}
     for (path, module) in \
-        (plugin.list (self.path, 'DriverInfo', False)).items ():
+        (plugin.list_plugins (self.path, 'DriverInfo', False)).items ():
       if isinstance (module, tuple):
         # error has occured in importing the module
         print path + ':' + module [1]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.