diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2006-06-17 16:48:40 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2006-06-17 16:48:40 +0000 |
| commit | ee0903f520403c5e03caef287f813e7b062d05ab (patch) | |
| tree | 947857d4c0ee13747b403a04f06f5078319e0c80 /lib/python/Tools/CList.py | |
| parent | 9c3098c8667241d18d2551a9a37ce7fbce396b71 (diff) | |
| download | enigma2-ee0903f520403c5e03caef287f813e7b062d05ab.tar.gz enigma2-ee0903f520403c5e03caef287f813e7b062d05ab.zip | |
add some new (currently unused) source/renderer based elements
Diffstat (limited to 'lib/python/Tools/CList.py')
| -rw-r--r-- | lib/python/Tools/CList.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/python/Tools/CList.py b/lib/python/Tools/CList.py new file mode 100644 index 00000000..d820175c --- /dev/null +++ b/lib/python/Tools/CList.py @@ -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) |
