[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnue] r9811 - in trunk/gnue-common: src/apps utils/helpers
From: |
johannes |
Subject: |
[gnue] r9811 - in trunk/gnue-common: src/apps utils/helpers |
Date: |
Thu, 15 Nov 2007 03:32:31 -0600 (CST) |
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]
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnue] r9811 - in trunk/gnue-common: src/apps utils/helpers,
johannes <=