git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
allow use of alphablended pixmaps in multicontent lists
[enigma2.git]
/
lib
/
python
/
Components
/
PluginComponent.py
diff --git
a/lib/python/Components/PluginComponent.py
b/lib/python/Components/PluginComponent.py
index d72e2af36f1414c8ee4cc43c1ede6845c5644e6e..fff5c47575011e35b119b17ee2c59f9e7add53e8 100644
(file)
--- a/
lib/python/Components/PluginComponent.py
+++ b/
lib/python/Components/PluginComponent.py
@@
-63,7
+63,7
@@
class PluginComponent:
continue
# allow single entry not to be a list
continue
# allow single entry not to be a list
- if
type(plugins) is not list
:
+ if
not isinstance(plugins, list)
:
plugins = [ plugins ]
for p in plugins:
plugins = [ plugins ]
for p in plugins:
@@
-91,14
+91,14
@@
class PluginComponent:
def getPlugins(self, where):
"""Get list of plugins in a specific category"""
def getPlugins(self, where):
"""Get list of plugins in a specific category"""
- if
type(where) is not list
:
+ if
not isinstance(where, list)
:
where = [ where ]
res = [ ]
for x in where:
where = [ where ]
res = [ ]
for x in where:
- for p in self.plugins.get(x, [ ]):
- res.append(p)
- return res
+ res.extend(self.plugins.get(x, [ ]))
+
+ return
res
def getPluginsForMenu(self, menuid):
res = [ ]
def getPluginsForMenu(self, menuid):
res = [ ]