aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Plugins/Extensions
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2009-02-16 18:25:23 +0100
committerFelix Domke <tmbinc@elitedvb.net>2009-02-16 18:25:23 +0100
commitd58ca4cf34b7621aea4e2c1ff07bed6b2cd6b763 (patch)
treef96b8eae81d7aa0c2d11eda8bcda1e4b87f96e78 /lib/python/Plugins/Extensions
parent4510fa62a33b31fec442fd0d77eb682d93ebf7e6 (diff)
parentfbaf2a5f2fa5236b09a4d14f059d99eace24f2d5 (diff)
downloadenigma2-d58ca4cf34b7621aea4e2c1ff07bed6b2cd6b763.tar.gz
enigma2-d58ca4cf34b7621aea4e2c1ff07bed6b2cd6b763.zip
Merge branch 'master' of /home/tmbinc/enigma2-git into tmbinc/FixTimingBugs
Diffstat (limited to 'lib/python/Plugins/Extensions')
-rw-r--r--lib/python/Plugins/Extensions/DVDBurn/DVDProject.py4
-rw-r--r--lib/python/Plugins/Extensions/DVDPlayer/plugin.py8
-rw-r--r--lib/python/Plugins/Extensions/IpkgInstaller/.cvsignore4
-rw-r--r--lib/python/Plugins/Extensions/IpkgInstaller/Makefile.am5
-rw-r--r--lib/python/Plugins/Extensions/IpkgInstaller/__init__.py0
-rw-r--r--lib/python/Plugins/Extensions/IpkgInstaller/plugin.py67
-rwxr-xr-x[-rw-r--r--]lib/python/Plugins/Extensions/Makefile.am2
-rwxr-xr-x[-rw-r--r--]lib/python/Plugins/Extensions/MediaScanner/plugin.py3
8 files changed, 6 insertions, 87 deletions
diff --git a/lib/python/Plugins/Extensions/DVDBurn/DVDProject.py b/lib/python/Plugins/Extensions/DVDBurn/DVDProject.py
index 7ea32dfe..660234f2 100644
--- a/lib/python/Plugins/Extensions/DVDBurn/DVDProject.py
+++ b/lib/python/Plugins/Extensions/DVDBurn/DVDProject.py
@@ -2,8 +2,8 @@ from Tools.Directories import fileExists
from Components.config import config, ConfigSubsection, ConfigInteger, ConfigText, ConfigSelection, getConfigListEntry, ConfigSequence, ConfigSubList
class ConfigColor(ConfigSequence):
- def __init__(self):
- ConfigSequence.__init__(self, seperator = "#", limits = [(0,255),(0,255),(0,255)])
+ def __init__(self, default = [128,128,128]):
+ ConfigSequence.__init__(self, seperator = "#", limits = [(0,255),(0,255),(0,255)], default = default)
class ConfigFilename(ConfigText):
def __init__(self):
diff --git a/lib/python/Plugins/Extensions/DVDPlayer/plugin.py b/lib/python/Plugins/Extensions/DVDPlayer/plugin.py
index 421a2b4e..8e2a9f3a 100644
--- a/lib/python/Plugins/Extensions/DVDPlayer/plugin.py
+++ b/lib/python/Plugins/Extensions/DVDPlayer/plugin.py
@@ -369,9 +369,6 @@ class DVDPlayer(Screen, InfoBarBase, InfoBarNotifications, InfoBarSeek, InfoBarP
self.onFirstExecBegin.append(self.showFileBrowser)
self.service = None
self.in_menu = False
- self.old_aspect = open("/proc/stb/video/aspect", "r").read()
- self.old_policy = open("/proc/stb/video/policy", "r").read()
- self.old_wss = open("/proc/stb/denc/0/wss", "r").read()
def keyNumberGlobal(self, number):
print "You pressed number " + str(number)
@@ -635,11 +632,6 @@ class DVDPlayer(Screen, InfoBarBase, InfoBarNotifications, InfoBarSeek, InfoBarP
pass
def __onClose(self):
- for i in (("/proc/stb/video/aspect", self.old_aspect), ("/proc/stb/video/policy", self.old_policy), ("/proc/stb/denc/0/wss", self.old_wss)):
- try:
- open(i[0], "w").write(i[1])
- except IOError:
- print "restore", i[0], "failed"
self.restore_infobar_seek_config()
self.session.nav.playService(self.oldService)
diff --git a/lib/python/Plugins/Extensions/IpkgInstaller/.cvsignore b/lib/python/Plugins/Extensions/IpkgInstaller/.cvsignore
deleted file mode 100644
index 138b9cc2..00000000
--- a/lib/python/Plugins/Extensions/IpkgInstaller/.cvsignore
+++ /dev/null
@@ -1,4 +0,0 @@
-*.pyc
-*.pyo
-Makefile
-Makefile.in
diff --git a/lib/python/Plugins/Extensions/IpkgInstaller/Makefile.am b/lib/python/Plugins/Extensions/IpkgInstaller/Makefile.am
deleted file mode 100644
index ece0698f..00000000
--- a/lib/python/Plugins/Extensions/IpkgInstaller/Makefile.am
+++ /dev/null
@@ -1,5 +0,0 @@
-installdir = $(LIBDIR)/enigma2/python/Plugins/Extensions/IpkgInstaller
-
-install_PYTHON = \
- __init__.py \
- plugin.py
diff --git a/lib/python/Plugins/Extensions/IpkgInstaller/__init__.py b/lib/python/Plugins/Extensions/IpkgInstaller/__init__.py
deleted file mode 100644
index e69de29b..00000000
--- a/lib/python/Plugins/Extensions/IpkgInstaller/__init__.py
+++ /dev/null
diff --git a/lib/python/Plugins/Extensions/IpkgInstaller/plugin.py b/lib/python/Plugins/Extensions/IpkgInstaller/plugin.py
deleted file mode 100644
index 4893dc47..00000000
--- a/lib/python/Plugins/Extensions/IpkgInstaller/plugin.py
+++ /dev/null
@@ -1,67 +0,0 @@
-from Components.ActionMap import ActionMap
-from Components.Ipkg import IpkgComponent
-from Components.Label import Label
-from Components.SelectionList import SelectionList
-from Plugins.Plugin import PluginDescriptor
-from Screens.Ipkg import Ipkg
-from Screens.Screen import Screen
-
-class IpkgInstaller(Screen):
- skin = """
- <screen position="100,100" size="550,400" title="..." >
- <widget name="red" halign="center" valign="center" position="0,0" size="140,60" backgroundColor="red" font="Regular;21" />
- <widget name="green" halign="center" valign="center" position="140,0" text="Install selected" size="140,60" backgroundColor="green" font="Regular;21" />
- <widget name="yellow" halign="center" valign="center" position="280,0" size="140,60" backgroundColor="yellow" font="Regular;21" />
- <widget name="blue" halign="center" valign="center" position="420,0" size="140,60" backgroundColor="blue" font="Regular;21" />
- <widget name="list" position="0,60" size="550,360" />
- </screen>
- """
-
- def __init__(self, session, list):
- self.skin = IpkgInstaller.skin
- Screen.__init__(self, session)
-
- self.list = SelectionList()
- self["list"] = self.list
- for listindex in range(len(list)):
- self.list.addSelection(list[listindex], list[listindex], listindex, True)
-
- self["red"] = Label()
- self["green"] = Label()
- self["yellow"] = Label()
- self["blue"] = Label()
-
- self["actions"] = ActionMap(["OkCancelActions", "ColorActions"],
- {
- "ok": self.list.toggleSelection,
- "cancel": self.close,
- "green": self.install
- }, -1)
-
- def install(self):
- list = self.list.getSelectionsList()
- cmdList = []
- for item in list:
- cmdList.append((IpkgComponent.CMD_INSTALL, { "package": item[1] }))
- print cmdList
- self.session.open(Ipkg, cmdList = cmdList)
-
-def filescan_open(list, session, **kwargs):
- filelist = [x.path for x in list]
- session.open(IpkgInstaller, filelist) # list
-
-def filescan(**kwargs):
- from Components.Scanner import Scanner, ScanPath
- return \
- Scanner(mimetypes = ["application/x-debian-package"],
- paths_to_scan =
- [
- ScanPath(path = "ipk", with_subdirs = True),
- ScanPath(path = "", with_subdirs = False),
- ],
- name = "Ipkg",
- description = "Install software updates...",
- openfnc = filescan_open, )
-
-def Plugins(**kwargs):
- return [ PluginDescriptor(name="Ipkg", where = PluginDescriptor.WHERE_FILESCAN, fnc = filescan) ]
diff --git a/lib/python/Plugins/Extensions/Makefile.am b/lib/python/Plugins/Extensions/Makefile.am
index 9f3737aa..edbd2084 100644..100755
--- a/lib/python/Plugins/Extensions/Makefile.am
+++ b/lib/python/Plugins/Extensions/Makefile.am
@@ -1 +1 @@
-SUBDIRS = TuxboxPlugins FileManager CutListEditor PicturePlayer MediaScanner MediaPlayer IpkgInstaller GraphMultiEPG SocketMMI DVDPlayer DVDBurn
+SUBDIRS = TuxboxPlugins FileManager CutListEditor PicturePlayer MediaScanner MediaPlayer GraphMultiEPG SocketMMI DVDPlayer DVDBurn
diff --git a/lib/python/Plugins/Extensions/MediaScanner/plugin.py b/lib/python/Plugins/Extensions/MediaScanner/plugin.py
index 88b917ee..2c31197d 100644..100755
--- a/lib/python/Plugins/Extensions/MediaScanner/plugin.py
+++ b/lib/python/Plugins/Extensions/MediaScanner/plugin.py
@@ -42,6 +42,9 @@ def scan(session):
parts = [ (r.description, r.mountpoint, session) for r in harddiskmanager.getMountedPartitions(onlyhotplug = False)]
if len(parts):
+ for x in parts:
+ if not access(x[1], F_OK|R_OK):
+ parts.remove(x)
session.openWithCallback(mountpoint_choosen, ChoiceBox, title = _("Please Select Medium to be Scanned"), list = parts)
def main(session, **kwargs):