add some new (currently unused) source/renderer based elements
[enigma2.git] / lib / python / Tools / CList.py
diff --git a/lib/python/Tools/CList.py b/lib/python/Tools/CList.py
new file mode 100644 (file)
index 0000000..d820175
--- /dev/null
@@ -0,0 +1,7 @@
+class CList(list):
+       def __getattr__(self, attr):
+               return CList([getattr(a, attr) for a in self])
+       
+       def __call__(self, *args, **kwargs):
+               for x in self:
+                       x(*args, **kwargs)