cleanup some imports
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Sun, 22 Jul 2007 09:54:05 +0000 (09:54 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Sun, 22 Jul 2007 09:54:05 +0000 (09:54 +0000)
118 files changed:
Navigation.py
RecordTimer.py
ServiceReference.py
e2reactor.py
lib/actions/parseactions.py
lib/python/Components/AVSwitch.py
lib/python/Components/BlinkingPixmap.py
lib/python/Components/Button.py
lib/python/Components/ChoiceList.py
lib/python/Components/Clock.py
lib/python/Components/ConditionalWidget.py
lib/python/Components/ConfigList.py
lib/python/Components/DiskInfo.py
lib/python/Components/EpgList.py
lib/python/Components/FileList.py
lib/python/Components/GUISkin.py
lib/python/Components/Header.py
lib/python/Components/HelpMenuList.py
lib/python/Components/Input.py
lib/python/Components/Label.py
lib/python/Components/MediaPlayer.py
lib/python/Components/MenuList.py
lib/python/Components/MovieList.py
lib/python/Components/Network.py
lib/python/Components/NimManager.py
lib/python/Components/ParentalControl.py
lib/python/Components/ParentalControlList.py
lib/python/Components/PerServiceDisplay.py
lib/python/Components/PluginList.py
lib/python/Components/ProgressBar.py
lib/python/Components/RecordingConfig.py
lib/python/Components/Renderer/Listbox.py
lib/python/Components/ScrollLabel.py
lib/python/Components/ServiceEventTracker.py
lib/python/Components/ServiceList.py
lib/python/Components/ServiceScan.py
lib/python/Components/SetupDevices.py
lib/python/Components/Slider.py
lib/python/Components/Sources/Clock.py
lib/python/Components/Sources/CurrentService.py
lib/python/Components/Sources/EventInfo.py
lib/python/Components/Sources/FrontendStatus.py
lib/python/Components/Sources/List.py
lib/python/Components/Sources/StaticText.py
lib/python/Components/TimerList.py
lib/python/Components/TimerSanityCheck.py
lib/python/Components/VariableText.py
lib/python/Components/VariableValue.py
lib/python/Components/VolumeBar.py
lib/python/Components/components.py
lib/python/Plugins/DemoPlugins/TestPlugin/plugin.py
lib/python/Plugins/Extensions/CutListEditor/plugin.py
lib/python/Plugins/Extensions/FileManager/plugin.py
lib/python/Plugins/Extensions/FritzCall/plugin.py
lib/python/Plugins/Extensions/PicturePlayer/plugin.py
lib/python/Plugins/Extensions/SimpleRSS/plugin.py
lib/python/Plugins/Extensions/WebInterface/.cvsignore [deleted file]
lib/python/Plugins/Extensions/WebInterface/Makefile.am [deleted file]
lib/python/Plugins/Extensions/WebInterface/__init__.py [deleted file]
lib/python/Plugins/Extensions/WebInterface/plugin.py [deleted file]
lib/python/Plugins/Extensions/WebInterface/web-data/Makefile.am [deleted file]
lib/python/Plugins/Extensions/WebInterface/web-data/tools.js [deleted file]
lib/python/Plugins/Extensions/WebInterface/web/Makefile.am [deleted file]
lib/python/Plugins/Extensions/WebInterface/web/index.html.xml [deleted file]
lib/python/Plugins/Extensions/WebInterface/web/stream.m3u.xml [deleted file]
lib/python/Plugins/Extensions/WebInterface/web/stream.xml [deleted file]
lib/python/Plugins/Extensions/WebInterface/web/zap.xml [deleted file]
lib/python/Plugins/Extensions/WebInterface/webif.py [deleted file]
lib/python/Plugins/SystemPlugins/ConfigurationBackup/plugin.py
lib/python/Plugins/SystemPlugins/OldSoftwareUpdate/plugin.py
lib/python/Plugins/SystemPlugins/Satfinder/plugin.py
lib/python/Plugins/SystemPlugins/SkinSelector/plugin.py
lib/python/Plugins/SystemPlugins/SoftwareUpdate/plugin.py
lib/python/Screens/About.py
lib/python/Screens/ChannelSelection.py
lib/python/Screens/ChoiceBox.py
lib/python/Screens/Ci.py
lib/python/Screens/Console.py
lib/python/Screens/EpgSelection.py
lib/python/Screens/EventView.py
lib/python/Screens/HelpMenu.py
lib/python/Screens/ImageWizard.py
lib/python/Screens/InfoBar.py
lib/python/Screens/InfoBarGenerics.py
lib/python/Screens/LanguageSelection.py
lib/python/Screens/MediaPlayer.py
lib/python/Screens/Menu.py
lib/python/Screens/MessageBox.py
lib/python/Screens/MinuteInput.py
lib/python/Screens/MovieSelection.py
lib/python/Screens/Mute.py
lib/python/Screens/NetworkSetup.py
lib/python/Screens/ParentalControlSetup.py
lib/python/Screens/PiPSetup.py
lib/python/Screens/PluginBrowser.py
lib/python/Screens/RdsDisplay.py
lib/python/Screens/Satconfig.py
lib/python/Screens/ScanSetup.py
lib/python/Screens/Screen.py
lib/python/Screens/ServiceInfo.py
lib/python/Screens/Setup.py
lib/python/Screens/SleepTimerEdit.py
lib/python/Screens/Standby.py
lib/python/Screens/StartWizard.py
lib/python/Screens/Subtitles.py
lib/python/Screens/TimeDateInput.py
lib/python/Screens/TimerEdit.py
lib/python/Screens/TimerEntry.py
lib/python/Screens/TutorialWizard.py
lib/python/Screens/Wizard.py
lib/python/Tools/Directories.py
lib/python/Tools/FuzzyDate.py
lib/python/Tools/RedirectTime.py
lib/python/Tools/__init__.py
mytest.py
skin.py
tests/enigma.py
timer.py

index cde4ca4..7b1deb0 100644 (file)
@@ -7,8 +7,6 @@ import SleepTimer
 import NavigationInstance
 import ServiceReference
 
-from time import time
-
 # TODO: remove pNavgation, eNavigation and rewrite this stuff in python.
 class Navigation:
        def __init__(self):
index 1c707c3..765e133 100644 (file)
@@ -1,9 +1,8 @@
 import time
-import codecs
 #from time import datetime
 from Tools import Directories, Notifications
 
-from Components.config import config, ConfigYesNo
+from Components.config import config
 import timer
 import xml.dom.minidom
 
index f7aa639..11e2878 100644 (file)
@@ -1,7 +1,5 @@
 from enigma import eServiceReference, eServiceCenter
 
-import NavigationInstance
-
 class ServiceReference(eServiceReference):
        def __init__(self, ref):
                if not isinstance(ref, eServiceReference):
index 4f069f9..a3d8ce1 100644 (file)
@@ -11,7 +11,7 @@ Maintainer: U{Felix Domke<mailto:tmbinc@elitedvb.net>}
 import select, errno, sys
 
 # Twisted imports
-from twisted.python import log, threadable, failure
+from twisted.python import log, failure
 from twisted.internet import main, posixbase, error
 #from twisted.internet.pollreactor import PollReactor, poller
 
index d0c1aec..4ab71af 100644 (file)
@@ -1,6 +1,6 @@
 # takes a header file, outputs action ids
 
-import token, tokenize, os, sys, string
+import tokenize, sys, string
 
 def filter(g):
        while 1:
index 67fad7b..d3224fd 100644 (file)
@@ -1,5 +1,4 @@
 from config import config, ConfigSelection, ConfigYesNo, ConfigEnableDisable, ConfigSubsection, ConfigBoolean
-import os
 from enigma import eAVSwitch
 
 class AVSwitch:
index fef8062..492f14e 100644 (file)
@@ -1,5 +1,5 @@
-from Pixmap import *
-from ConditionalWidget import *
+from Pixmap import PixmapConditional
+from ConditionalWidget import BlinkingWidgetConditional, BlinkingWidget
 
 class BlinkingPixmap(BlinkingWidget):
        def __init__(self):
index f1acb99..25346b4 100644 (file)
@@ -1,6 +1,6 @@
-from HTMLComponent import *
-from GUIComponent import *
-from VariableText import *
+from HTMLComponent import HTMLComponent
+from GUIComponent import GUIComponent
+from VariableText import VariableText
 
 from enigma import eButton
 
index a7a5e48..14216cf 100644 (file)
@@ -1,5 +1,5 @@
-from HTMLComponent import *
-from GUIComponent import *
+from HTMLComponent import HTMLComponent
+from GUIComponent import GUIComponent
 from MenuList import MenuList
 from Tools.Directories import SCOPE_SKIN_IMAGE, resolveFilename
 from enigma import RT_HALIGN_LEFT, eListboxPythonMultiContent, eListbox, gFont, loadPNG
index 9a6031e..ddd6ffb 100644 (file)
@@ -1,6 +1,6 @@
-from HTMLComponent import *
-from GUIComponent import *
-from VariableText import *
+from HTMLComponent import HTMLComponent
+from GUIComponent import GUIComponent
+from VariableText import VariableText
 
 from enigma import eTimer, eLabel
 
index 7d35d95..f826c29 100644 (file)
@@ -1,4 +1,4 @@
-from GUIComponent import *
+from GUIComponent import GUIComponent
 from enigma import eTimer
 
 class ConditionalWidget(GUIComponent):
index 534459e..7ed6031 100644 (file)
@@ -1,5 +1,5 @@
-from HTMLComponent import *
-from GUIComponent import *
+from HTMLComponent import HTMLComponent
+from GUIComponent import GUIComponent
 from config import KEY_LEFT, KEY_RIGHT, KEY_0, KEY_DELETE, KEY_OK, KEY_TIMEOUT, ConfigElement
 from Components.ActionMap import NumberActionMap
 from enigma import eListbox, eListboxPythonConfigContent, eTimer
index ba04ea4..07a6aa4 100644 (file)
@@ -1,5 +1,5 @@
-from GUIComponent import *
-from VariableText import *
+from GUIComponent import GUIComponent
+from VariableText import VariableText
 from os import statvfs
 
 from enigma import eLabel
index 4a18232..23d7784 100644 (file)
@@ -1,10 +1,9 @@
-from HTMLComponent import *
-from GUIComponent import *
+from HTMLComponent import HTMLComponent
+from GUIComponent import GUIComponent
 
 from enigma import eEPGCache, eListbox, eListboxPythonMultiContent, gFont, loadPNG, \
        RT_HALIGN_LEFT, RT_HALIGN_RIGHT, RT_HALIGN_CENTER, RT_VALIGN_CENTER
 
-from re import *
 from time import localtime, time
 from ServiceReference import ServiceReference
 from Tools.Directories import resolveFilename, SCOPE_SKIN_IMAGE
index 3b02817..ae171c3 100644 (file)
@@ -1,5 +1,5 @@
-from HTMLComponent import *
-from GUIComponent import *
+from HTMLComponent import HTMLComponent
+from GUIComponent import GUIComponent
 import re
 
 from os import path as os_path, listdir
index fc8f38c..0fb9421 100644 (file)
@@ -1,4 +1,4 @@
-from GUIComponent import *
+from GUIComponent import GUIComponent
 from skin import applyAllAttributes
 from Tools.CList import CList
 
index 6f085c1..e69de29 100644 (file)
@@ -1,17 +0,0 @@
-from HTMLComponent import *
-from GUIComponent import *
-from VariableText import *
-
-from enigma import eLabel
-
-class Header(VariableText, HTMLComponent, GUIComponent):
-
-       def __init__(self, message):
-               GUIComponent.__init__(self)
-               VariableText.__init__(self)
-               self.setText(message)
-       
-       def produceHTML(self):
-               return "<h2>" + self.getText() + "</h2>\n"
-
-       GUI_WIDGET = eLabel
index 99bd536..07bbdd2 100644 (file)
@@ -1,4 +1,4 @@
-from GUIComponent import *
+from GUIComponent import GUIComponent
 
 from enigma import eListboxPythonMultiContent, eListbox, gFont
 
index b30a74e..e0a7f44 100644 (file)
@@ -1,6 +1,6 @@
-from HTMLComponent import *
-from GUIComponent import *
-from VariableText import *
+from HTMLComponent import HTMLComponent
+from GUIComponent import GUIComponent
+from VariableText import VariableText
 
 from enigma import eLabel
 
index 4d90bad..7e61275 100644 (file)
@@ -1,8 +1,8 @@
-from HTMLComponent import *
-from GUIComponent import *
-from VariableText import *
+from HTMLComponent import HTMLComponent
+from GUIComponent import GUIComponent
+from VariableText import VariableText
 
-from ConditionalWidget import *
+from ConditionalWidget import ConditionalWidget, BlinkingWidget, BlinkingWidgetConditional
 
 from enigma import eLabel
 
index ec0000c..a728aef 100644 (file)
@@ -1,5 +1,5 @@
-from HTMLComponent import *
-from GUIComponent import *
+from HTMLComponent import HTMLComponent
+from GUIComponent import GUIComponent
 
 from MenuList import MenuList
 
index dcbe7c1..876300b 100644 (file)
@@ -1,5 +1,5 @@
-from HTMLComponent import *
-from GUIComponent import *
+from HTMLComponent import HTMLComponent
+from GUIComponent import GUIComponent
 
 from enigma import eListboxPythonStringContent, eListbox
 
index 45a34fb..d43b510 100644 (file)
@@ -1,4 +1,4 @@
-from GUIComponent import *
+from GUIComponent import GUIComponent
 from Tools.FuzzyDate import FuzzyTime
 from ServiceReference import ServiceReference
 from Components.MultiContent import MultiContentEntryText
index a8c7590..6fbd999 100644 (file)
@@ -1,5 +1,3 @@
-from Components.config import config, ConfigYesNo, ConfigIP, NoSave, ConfigSubsection, ConfigMAC
-
 import os
 import re
 from socket import *
index 70ce4db..22c9952 100644 (file)
@@ -7,15 +7,9 @@ from enigma import eDVBSatelliteEquipmentControl as secClass, \
        eDVBSatelliteRotorParameters as rotorParam, \
        eDVBResourceManager
 
-import xml.dom.minidom
-from xml.dom import EMPTY_NAMESPACE
-from skin import elementsWithTag
-from Tools import XMLTools
-
 from xml.sax import make_parser
 from xml.sax.handler import ContentHandler
 
-from Tools.BoundFunction import boundFunction
 from time import localtime, mktime
 from datetime import datetime
 
index bf97181..8c8a330 100644 (file)
@@ -1,6 +1,5 @@
 from Components.config import config, ConfigSubsection, ConfigSelection, ConfigPIN, ConfigYesNo, ConfigSubList, ConfigInteger
-from Components.Input import Input
-from Screens.InputBox import InputBox, PinInput
+from Screens.InputBox import PinInput
 from Screens.MessageBox import MessageBox
 from Tools.BoundFunction import boundFunction
 from ServiceReference import ServiceReference
index db8fd8e..f518555 100644 (file)
@@ -1,5 +1,5 @@
-from HTMLComponent import *
-from GUIComponent import *
+from HTMLComponent import HTMLComponent
+from GUIComponent import GUIComponent
 
 from MenuList import MenuList
 from Components.ParentalControl import parentalControl
index 27f1517..6e02cce 100644 (file)
@@ -1,6 +1,6 @@
-from GUIComponent import *
-from VariableText import *
-from VariableValue import *
+from GUIComponent import GUIComponent
+from VariableText import VariableText
+from VariableValue import VariableValue
 
 from enigma import iPlayableService
 from enigma import eLabel, eSlider, eTimer
index 07a7174..3a3bef1 100644 (file)
@@ -1,12 +1,12 @@
-from HTMLComponent import *
-from GUIComponent import *
+from HTMLComponent import HTMLComponent
+from GUIComponent import GUIComponent
 
 from MenuList import MenuList
 
 from Tools.Directories import resolveFilename, SCOPE_SKIN_IMAGE
 from Components.MultiContent import MultiContentEntryText, MultiContentEntryPixmapAlphaTest
 
-from enigma import loadPNG, eListboxPythonMultiContent, RT_HALIGN_LEFT, eListbox, gFont
+from enigma import loadPNG, eListboxPythonMultiContent, eListbox, gFont
 
 def PluginEntryComponent(plugin):
        res = [ plugin ]
index f18c467..d97ac83 100644 (file)
@@ -1,6 +1,6 @@
-from HTMLComponent import *
-from GUIComponent import *
-from VariableValue import *
+from HTMLComponent import HTMLComponent
+from GUIComponent import GUIComponent
+from VariableValue import VariableValue
 
 from enigma import eSlider
 
index 6a3bfb6..d3a0daf 100644 (file)
@@ -1,5 +1,4 @@
 from config import ConfigInteger, ConfigYesNo, ConfigSubsection, config
-import os
 
 def InitRecordingConfig():
        config.recording = ConfigSubsection();
index a1f8937..ef8206a 100644 (file)
@@ -1,7 +1,4 @@
-from Components.VariableText import VariableText
 from Renderer import Renderer
-from Tools.Event import Event
-
 from enigma import eListbox
 
 # the listbox renderer is the listbox, but no listbox content.
index 85e176f..aa5163b 100644 (file)
@@ -1,6 +1,6 @@
 import skin
-from HTMLComponent import *
-from GUIComponent import *
+from HTMLComponent import HTMLComponent
+from GUIComponent import GUIComponent
 from enigma import eLabel, eWidget, eSlider, fontRenderClass, ePoint, eSize
 
 class ScrollLabel(HTMLComponent, GUIComponent):
index 99c02fa..2046043 100644 (file)
@@ -1,5 +1,3 @@
-from enigma import pNavigation
-
 class ServiceEventTracker:
        """Tracks service events into a screen"""
        
index 7dfcd05..b255cd9 100644 (file)
@@ -1,11 +1,11 @@
-from HTMLComponent import *
-from GUIComponent import *
+from HTMLComponent import HTMLComponent
+from GUIComponent import GUIComponent
 
 from enigma import loadPNG, eListboxServiceContent, eListbox, eServiceCenter, eServiceReference, gFont, eRect
 
 from string import upper
 
-from Tools.Directories import resolveFilename, SCOPE_SKIN, SCOPE_SKIN_IMAGE, SCOPE_FONTS
+from Tools.Directories import resolveFilename, SCOPE_SKIN_IMAGE
 
 class ServiceList(HTMLComponent, GUIComponent):
        MODE_NORMAL = 0
index d812fdd..0949871 100644 (file)
@@ -1,4 +1,4 @@
-from enigma import eComponentScan, eDVBFrontendParametersSatellite, eDVBFrontendParametersCable, eDVBFrontendParametersTerrestrial
+from enigma import eComponentScan
 
 class ServiceScan:
        
index 546d04a..71fb1e4 100644 (file)
@@ -1,4 +1,4 @@
-from config import config, ConfigSlider, ConfigSelection, ConfigSubsection, ConfigOnOff, ConfigText
+from config import config, ConfigSelection, ConfigSubsection, ConfigOnOff, ConfigText
 from Components.Timezones import timezones
 from Components.Language import language
 
index b8144bb..a36a573 100644 (file)
@@ -1,7 +1,6 @@
-from HTMLComponent import *
-from GUIComponent import *
-from VariableValue import *
-from VariableText import *
+from HTMLComponent import HTMLComponent
+from GUIComponent import GUIComponent
+from VariableValue import VariableValue
 
 from enigma import eSlider
 
index 4833ddd..4c4b41e 100644 (file)
@@ -1,4 +1,3 @@
-from Tools.Event import Event
 from Components.Element import cached
 from enigma import eTimer
 import time
index 8e582d5..acc624a 100644 (file)
@@ -3,8 +3,6 @@ from enigma import iPlayableService
 from Source import Source
 from Components.Element import cached
 
-from time import time
-
 class CurrentService(PerServiceBase, Source):
        def __init__(self, navcore):
                Source.__init__(self)
index 72d5f18..a4bc874 100644 (file)
@@ -1,10 +1,8 @@
 from Components.PerServiceDisplay import PerServiceBase
 from Components.Element import cached
-from Tools.Event import Event
 from enigma import iPlayableService
 from Source import Source
 
-from time import time
 
 class EventInfo(PerServiceBase, Source, object):
        NOW = 0
index 1af03f9..5b7e5b0 100644 (file)
@@ -1,5 +1,5 @@
 from Source import Source
-from enigma import eTimer, iFrontendInformation
+from enigma import eTimer
 
 class FrontendStatus(Source):
        def __init__(self, service_source = None, frontend_source = None):
index e141da5..d722129 100644 (file)
@@ -1,5 +1,4 @@
 from Source import Source
-from Tools.Event import Event
 from Components.Element import cached
 
 class List(Source, object):
index 2f8f0e1..6f775c4 100644 (file)
@@ -1,5 +1,4 @@
 from Source import Source
-from Components.Element import cached
 
 class StaticText(Source):
        # filter is a function which filters external, untrusted strings
index c732e94..e31a0f4 100644 (file)
@@ -1,11 +1,10 @@
-from HTMLComponent import *
-from GUIComponent import *
+from HTMLComponent import HTMLComponent
+from GUIComponent import GUIComponent
 
 from Tools.FuzzyDate import FuzzyTime
-import time
 
 from enigma import eListboxPythonMultiContent, eListbox, gFont, loadPNG, \
-       RT_HALIGN_CENTER, RT_HALIGN_LEFT, RT_HALIGN_RIGHT, RT_VALIGN_CENTER
+       RT_HALIGN_LEFT, RT_HALIGN_RIGHT, RT_VALIGN_CENTER
 from timer import TimerEntry
 from Tools.Directories import resolveFilename, SCOPE_SKIN_IMAGE
 
index 35e78de..50daa2f 100644 (file)
@@ -1,4 +1,3 @@
-from Components.NimManager import nimmanager
 from time import localtime
 
 class TimerSanityCheck:
index bb8b5fe..d20e519 100644 (file)
@@ -1,5 +1,3 @@
-import skin
-
 class VariableText(object):
        """VariableText can be used for components which have a variable text, based on any widget with setText call"""
        
index 288de01..7fde0af 100644 (file)
@@ -1,5 +1,3 @@
-import skin
-
 class VariableValue(object):
        """VariableValue can be used for components which have a variable value (like eSlider), based on any widget with setValue call"""
        
index c51bdb1..1ada3c6 100644 (file)
@@ -1,10 +1,8 @@
-from HTMLComponent import *
-from GUIComponent import *
-from VariableValue import *
-from VariableText import *
+from HTMLComponent import HTMLComponent
+from GUIComponent import GUIComponent
+from VariableValue import VariableValue
 
 from enigma import eSlider
-from enigma import eLabel
 
 class VolumeBar(VariableValue, HTMLComponent, GUIComponent):
        def __init__(self):
index 87159bf..e69de29 100644 (file)
@@ -1,23 +0,0 @@
-import time
-import sys
-
-import HTMLComponent 
-import HTMLSkin 
-import GUISkin 
-import GUIComponent 
-import VariableValue 
-import Clock 
-import Button 
-import Label 
-import Header 
-import VolumeBar 
-import ProgressBar 
-import MenuList 
-import config 
-import ConfigList 
-import ServiceList 
-import ServiceScan 
-import ActionMap 
-import PerServiceDisplay 
-import EventInfo 
-import ServiceName 
index dae4d4a..5456fb1 100644 (file)
@@ -1,10 +1,9 @@
 from Screens.Screen import Screen
 from Screens.MessageBox import MessageBox
 from Components.ActionMap import NumberActionMap
-from Components.Label import Label
 from Components.Input import Input
 from Components.Pixmap import Pixmap
-from Components.FileList import FileEntryComponent, FileList
+from Components.FileList import FileList
 from Screens.ChoiceBox import ChoiceBox
 from Plugins.Plugin import PluginDescriptor
 
index 4c42553..200e37c 100644 (file)
@@ -4,7 +4,6 @@ from Screens.Screen import Screen
 from Screens.MessageBox import MessageBox
 from Components.ServicePosition import ServicePositionGauge
 from Components.ActionMap import HelpableActionMap
-from Components.MenuList import MenuList
 from Components.MultiContent import MultiContentEntryText
 from Components.ServiceEventTracker import ServiceEventTracker
 from Components.VideoWindow import VideoWindow
index 3cbef34..09a20e0 100644 (file)
@@ -1,7 +1,7 @@
 from Screens.Screen import Screen
 from Components.ActionMap import NumberActionMap
 from Components.Pixmap import Pixmap
-from Components.FileList import FileEntryComponent, FileList
+from Components.FileList import FileList
 from Plugins.Plugin import PluginDescriptor
 
 class FileManager(Screen):
index 339f2dd..0b67345 100644 (file)
@@ -1,7 +1,6 @@
 from Screens.Screen import Screen
 from Screens.MessageBox import MessageBox
 from Components.ActionMap import ActionMap
-from Components.Label import Label
 from Plugins.Plugin import PluginDescriptor
 from Tools import Notifications
 
@@ -9,12 +8,10 @@ from twisted.internet import reactor
 from twisted.internet.protocol import ReconnectingClientFactory
 from twisted.protocols.basic import LineReceiver
 
-from enigma import eTimer
-
 my_global_session = None
 
 from Components.config import config, ConfigSubsection, ConfigIP, ConfigEnableDisable, getConfigListEntry
-from Components.ConfigList import ConfigList, ConfigListScreen
+from Components.ConfigList import ConfigListScreen
 
 config.plugins.FritzCall = ConfigSubsection()
 config.plugins.FritzCall.hostname = ConfigIP(default = [192,168,178,254])
@@ -28,8 +25,6 @@ class FritzCallSetup(ConfigListScreen, Screen):
 
 
        def __init__(self, session, args = None):
-               from Tools.BoundFunction import boundFunction
-               
                Screen.__init__(self, session)
                self.onClose.append(self.abort)
                
index 8a59109..c54669b 100644 (file)
@@ -9,7 +9,7 @@ from Components.ConfigList import ConfigList
 from Components.config import *
 
 from Tools.Directories import resolveFilename, pathExists, createDir, SCOPE_MEDIA
-from Components.FileList import FileEntryComponent, FileList
+from Components.FileList import FileList
 from Components.AVSwitch import AVSwitch
 
 from Plugins.Plugin import PluginDescriptor
index 49da5e6..980fe5d 100644 (file)
@@ -5,13 +5,10 @@ from Screens.Screen import Screen
 from Screens.MessageBox import MessageBox
 from Components.ActionMap import ActionMap
 from Components.GUIComponent import GUIComponent
-from Components.Label import Label
 from Components.MultiContent import MultiContentEntryText
 from Plugins.Plugin import PluginDescriptor
-from enigma import eListboxPythonMultiContent, eListbox, gFont, iServiceInformation, RT_HALIGN_LEFT, RT_HALIGN_RIGHT, RT_WRAP
+from enigma import eListboxPythonMultiContent, eListbox, gFont, RT_HALIGN_LEFT, RT_WRAP
 
-from twisted.web import server
-from twisted.web.resource import Resource
 from twisted.web.client import getPage
 import xml.dom.minidom
 
@@ -25,7 +22,7 @@ my_global_session = None
 urls = ["http://www.heise.de/newsticker/heise.rdf", "http://rss.slashdot.org/Slashdot/slashdot/to"]
 
 from Components.config import config, ConfigSubsection, ConfigSelection, getConfigListEntry
-from Components.ConfigList import ConfigList, ConfigListScreen
+from Components.ConfigList import ConfigListScreen
 config.simpleRSS = ConfigSubsection()
 config.simpleRSS.hostname = ConfigSelection(choices = urls)
 
@@ -36,8 +33,6 @@ class SimpleRSS(ConfigListScreen, Screen):
                </screen>"""
 
        def __init__(self, session, args = None):
-               from Tools.BoundFunction import boundFunction
-               
                print "screen init"
                Screen.__init__(self, session)
                self.skin = SimpleRSS.skin
diff --git a/lib/python/Plugins/Extensions/WebInterface/.cvsignore b/lib/python/Plugins/Extensions/WebInterface/.cvsignore
deleted file mode 100644 (file)
index 138b9cc..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-*.pyc
-*.pyo
-Makefile
-Makefile.in
diff --git a/lib/python/Plugins/Extensions/WebInterface/Makefile.am b/lib/python/Plugins/Extensions/WebInterface/Makefile.am
deleted file mode 100644 (file)
index e69de29..0000000
diff --git a/lib/python/Plugins/Extensions/WebInterface/__init__.py b/lib/python/Plugins/Extensions/WebInterface/__init__.py
deleted file mode 100644 (file)
index e69de29..0000000
diff --git a/lib/python/Plugins/Extensions/WebInterface/plugin.py b/lib/python/Plugins/Extensions/WebInterface/plugin.py
deleted file mode 100644 (file)
index e69de29..0000000
diff --git a/lib/python/Plugins/Extensions/WebInterface/web-data/Makefile.am b/lib/python/Plugins/Extensions/WebInterface/web-data/Makefile.am
deleted file mode 100644 (file)
index e69de29..0000000
diff --git a/lib/python/Plugins/Extensions/WebInterface/web-data/tools.js b/lib/python/Plugins/Extensions/WebInterface/web-data/tools.js
deleted file mode 100644 (file)
index e69de29..0000000
diff --git a/lib/python/Plugins/Extensions/WebInterface/web/Makefile.am b/lib/python/Plugins/Extensions/WebInterface/web/Makefile.am
deleted file mode 100644 (file)
index e69de29..0000000
diff --git a/lib/python/Plugins/Extensions/WebInterface/web/index.html.xml b/lib/python/Plugins/Extensions/WebInterface/web/index.html.xml
deleted file mode 100644 (file)
index e69de29..0000000
diff --git a/lib/python/Plugins/Extensions/WebInterface/web/stream.m3u.xml b/lib/python/Plugins/Extensions/WebInterface/web/stream.m3u.xml
deleted file mode 100644 (file)
index e69de29..0000000
diff --git a/lib/python/Plugins/Extensions/WebInterface/web/stream.xml b/lib/python/Plugins/Extensions/WebInterface/web/stream.xml
deleted file mode 100644 (file)
index e69de29..0000000
diff --git a/lib/python/Plugins/Extensions/WebInterface/web/zap.xml b/lib/python/Plugins/Extensions/WebInterface/web/zap.xml
deleted file mode 100644 (file)
index e69de29..0000000
diff --git a/lib/python/Plugins/Extensions/WebInterface/webif.py b/lib/python/Plugins/Extensions/WebInterface/webif.py
deleted file mode 100644 (file)
index e69de29..0000000
index d225cd0..89f979f 100644 (file)
@@ -9,7 +9,6 @@ from Components.config import ConfigSelection, ConfigSubsection, KEY_LEFT, KEY_R
 from Components.ConfigList import ConfigList
 from Plugins.Plugin import PluginDescriptor
 
-from Tools.NumericalTextInput import *
 from Tools.Directories import *
 from os import path, makedirs, listdir
 from time import localtime
index 0f6c4e8..17abb0f 100644 (file)
@@ -1,13 +1,9 @@
 from enigma import RT_HALIGN_LEFT, RT_VALIGN_CENTER, eListboxPythonMultiContent, eListbox, eTimer, gFont
 from Screens.Screen import Screen
 from Screens.MessageBox import MessageBox
-from Components.ActionMap import ActionMap, NumberActionMap
+from Components.ActionMap import ActionMap
 from Components.ScrollLabel import ScrollLabel
-from Components.Label import Label
-from Components.GUIComponent import *
-from Components.MenuList import MenuList
-from Components.Input import Input
-from Screens.Console import Console
+from Components.GUIComponent import GUIComponent
 from Plugins.Plugin import PluginDescriptor
 
 from os import popen
index 1a52077..f3fb35e 100644 (file)
@@ -1,5 +1,5 @@
-from enigma import eTimer, eDVBSatelliteEquipmentControl, eDVBResourceManager,\
-       eDVBDiseqcCommand, eDVBFrontendParametersSatellite, eDVBFrontendParameters
+from enigma import eTimer, eDVBResourceManager,\
+       eDVBFrontendParametersSatellite, eDVBFrontendParameters
 
 from Screens.Screen import Screen
 from Screens.ScanSetup import ScanSetup
@@ -7,12 +7,11 @@ from Screens.MessageBox import MessageBox
 from Plugins.Plugin import PluginDescriptor
 
 from Components.Label import Label
-from Components.ConfigList import ConfigList
 from Components.TunerInfo import TunerInfo
 from Components.ActionMap import ActionMap
 from Components.NimManager import nimmanager, getConfigSatlist
 from Components.MenuList import MenuList
-from Components.config import ConfigSelection, ConfigSatlist, getConfigListEntry
+from Components.config import ConfigSelection, getConfigListEntry
 
 class Tuner:
        def __init__(self, frontend):
index adeff07..fdb2683 100755 (executable)
@@ -9,7 +9,6 @@ from Components.Pixmap import Pixmap
 from Components.MenuList import MenuList
 from Plugins.Plugin import PluginDescriptor
 from Components.config import config
-from Tools.Directories import SCOPE_SKIN
 from Components.config import config
 
 from os import path, walk
index c71ffdb..505b0cd 100644 (file)
@@ -4,7 +4,6 @@ from Components.Input import Input
 from Components.Ipkg import IpkgComponent
 from Components.Label import Label
 from Components.MenuList import MenuList
-from Components.ScrollLabel import ScrollLabel
 from Components.Slider import Slider
 from Plugins.Plugin import PluginDescriptor
 from Screens.Console import Console
index 6658bb1..2c7d98f 100644 (file)
@@ -3,7 +3,6 @@ from Components.ActionMap import ActionMap
 from Components.Label import Label
 from Components.Harddisk import Harddisk
 from Components.NimManager import nimmanager
-from Components.MenuList import MenuList
 from Components.About import about
 
 from Tools.DreamboxHardware import getFPVersion
index eb6f905..0fe625b 100644 (file)
@@ -7,7 +7,6 @@ from Components.ServiceEventTracker import ServiceEventTracker
 from EpgSelection import EPGSelection
 from enigma import eServiceReference, eEPGCache, eServiceCenter, eTimer, eDVBDB, iPlayableService, iServiceInformation
 from Components.config import config, ConfigSubsection, ConfigText
-from Screens.FixedMenu import FixedMenu
 from Tools.NumericalTextInput import NumericalTextInput
 from Components.NimManager import nimmanager
 from Components.Sources.Clock import Clock
@@ -21,13 +20,11 @@ from Screens.ServiceInfo import ServiceInfo
 from Screens.RdsDisplay import RassInteractive
 from ServiceReference import ServiceReference
 from Tools.BoundFunction import boundFunction
-from re import *
+from re import compile
 from os import remove
 
 FLAG_SERVICE_NEW_FOUND = 64 #define in lib/dvb/idvb.h as dxNewFound = 64
 
-import xml.dom.minidom
-
 class BouquetSelector(Screen):
        def __init__(self, session, bouquets, selectedFunc, enableWrapAround=False):
                Screen.__init__(self, session)
index b1d74ad..0436f66 100644 (file)
@@ -1,8 +1,6 @@
 from Screens.Screen import Screen
-from Screens.MessageBox import MessageBox
 from Components.ActionMap import NumberActionMap
 from Components.Label import Label
-from Components.MenuList import MenuList
 from Components.ChoiceList import ChoiceEntryComponent, ChoiceList
 
 class ChoiceBox(Screen):
index b6f315b..46b0779 100644 (file)
@@ -1,15 +1,12 @@
-from Screen import *
-from Components.MenuList import MenuList
+from Screen import Screen
 from Components.ActionMap import ActionMap
 from Components.ActionMap import NumberActionMap
-from Components.Header import Header
-from Components.Button import Button
 from Components.Label import Label
 
 from Components.config import config, ConfigSubsection, ConfigSelection, ConfigSubList, getConfigListEntry, KEY_LEFT, KEY_RIGHT, KEY_0, ConfigNothing, ConfigPIN
 from Components.ConfigList import ConfigList
 
-from enigma import eTimer, eDVBCI_UI, eListboxPythonStringContent, eListboxPythonConfigContent
+from enigma import eTimer, eDVBCI_UI
 
 MAX_NUM_CI = 4
 
index 03b0249..c2e1688 100644 (file)
@@ -1,6 +1,6 @@
 from enigma import eConsoleAppContainer
 from Screens.Screen import Screen
-from Components.ActionMap import ActionMap, NumberActionMap
+from Components.ActionMap import ActionMap
 from Components.ScrollLabel import ScrollLabel
 
 class Console(Screen):
index 3103bfa..9ceb42c 100644 (file)
@@ -3,21 +3,16 @@ from Components.config import config, ConfigClock
 from Components.Button import Button
 from Components.Pixmap import Pixmap
 from Components.Label import Label
-from Components.EpgList import *
+from Components.EpgList import EPGList
 from Components.ActionMap import ActionMap
-from Components.ScrollLabel import ScrollLabel
 from Screens.EventView import EventViewSimple
 from TimeDateInput import TimeDateInput
 from enigma import eServiceReference
-from Screens.FixedMenu import FixedMenu
 from RecordTimer import RecordTimerEntry, parseEvent
-from TimerEdit import TimerEditList
 from TimerEntry import TimerEntry
 from ServiceReference import ServiceReference
 from time import localtime, time
 
-import xml.dom.minidom
-
 mepg_config_initialized = False
 
 class EPGSelection(Screen):
index 8504165..7746b13 100644 (file)
@@ -4,10 +4,9 @@ from Components.Button import Button
 from Components.Label import Label
 from Components.ScrollLabel import ScrollLabel
 from enigma import eEPGCache, eTimer, eServiceReference
-from ServiceReference import ServiceReference
 from RecordTimer import RecordTimerEntry, parseEvent
 from TimerEntry import TimerEntry
-from time import localtime, asctime
+from time import localtime
 
 class EventViewBase:
        def __init__(self, Event, Ref, callback=None, similarEPGCB=None):
index 7bd5212..e6eab6b 100644 (file)
@@ -1,16 +1,8 @@
 from Screen import Screen
-
-from Components.Pixmap import *
-from Components.Pixmap import Pixmap
-from Components.Pixmap import MovingPixmap
+from Components.Pixmap import Pixmap, MovingPixmap
 from Components.Label import Label
-from Components.Slider import Slider
 from Components.ActionMap import ActionMap
 from Components.HelpMenuList import HelpMenuList
-import string
-from xml.sax import make_parser
-from xml.sax.handler import ContentHandler
-from Components.MenuList import MenuList
 
 class HelpMenu(Screen):
        def __init__(self, session, list):
index 461fa31..148eba5 100644 (file)
@@ -1,8 +1,5 @@
 from Wizard import Wizard, wizardManager
 
-from Components.Pixmap import *
-
-from LanguageSelection import LanguageSelection
 from Tools.Directories import fileExists
 
 import os
index ba31a83..92be771 100644 (file)
@@ -10,8 +10,6 @@ from Components.ActionMap import HelpableActionMap
 from Components.config import config
 from Components.ServiceEventTracker import ServiceEventTracker
 
-from Tools.Notifications import AddNotificationWithCallback
-
 from Screens.InfoBarGenerics import InfoBarShowHide, \
        InfoBarNumberZap, InfoBarChannelSelection, InfoBarMenu, InfoBarRdsDecoder, \
        InfoBarEPG, InfoBarEvent, InfoBarServiceName, InfoBarSeek, InfoBarInstantRecord, \
@@ -21,7 +19,7 @@ from Screens.InfoBarGenerics import InfoBarShowHide, \
        InfoBarSummarySupport, InfoBarTimeshiftState, InfoBarTeletextPlugin, InfoBarExtensions, \
        InfoBarSubtitleSupport, InfoBarPiP, InfoBarPlugins, InfoBarSleepTimer, InfoBarServiceErrorPopupSupport
 
-from Screens.HelpMenu import HelpableScreen, HelpMenu
+from Screens.HelpMenu import HelpableScreen
 
 from enigma import iPlayableService
 
index ca97b55..8aeb767 100644 (file)
@@ -5,10 +5,9 @@ from Components.ActionMap import NumberActionMap
 from Components.BlinkingPixmap import BlinkingPixmapConditional
 from Components.Harddisk import harddiskmanager
 from Components.Input import Input
-from Components.Label import *
-from Components.Pixmap import Pixmap, PixmapConditional
+from Components.Label import Label
+from Components.Pixmap import Pixmap
 from Components.PluginComponent import plugins
-from Components.ProgressBar import *
 from Components.ServiceEventTracker import ServiceEventTracker
 from Components.Sources.CurrentService import CurrentService
 from Components.Sources.EventInfo import EventInfo
index dbc6d48..81eb2d4 100644 (file)
@@ -7,7 +7,7 @@ from Components.Sources.List import List
 
 from Tools.Directories import *
 
-from enigma import eListboxPythonMultiContent, loadPNG, eListbox, gFont, RT_HALIGN_LEFT
+from enigma import eListboxPythonMultiContent, loadPNG, gFont, RT_HALIGN_LEFT
 
 def LanguageEntryComponent(file, name, index):
        res = [ index ]
index 84c7571..a378daf 100644 (file)
@@ -1,18 +1,16 @@
-import os
-import time
-from enigma import eTimer, iPlayableService, eServiceCenter, iServiceInformation, eSize
+for os import path as os_path, os_remove, os_listdir
+from time import strftime
+from enigma import eTimer, iPlayableService, eServiceCenter, iServiceInformation
 from Screens.Screen import Screen
 from Screens.MessageBox import MessageBox
 from Screens.InputBox import InputBox
-from Components.ActionMap import NumberActionMap, ActionMap, HelpableActionMap
+from Components.ActionMap import NumberActionMap, HelpableActionMap
 from Components.Label import Label
-from Components.Input import Input
 from Components.Pixmap import Pixmap
 from Components.Label import Label
-from Components.FileList import FileEntryComponent, FileList
-from Components.MediaPlayer import PlayList, PlaylistEntryComponent
-from Plugins.Plugin import PluginDescriptor
-from Tools.Directories import resolveFilename, SCOPE_MEDIA, SCOPE_CONFIG, SCOPE_PLAYLIST, SCOPE_SKIN_IMAGE
+from Components.FileList import FileList
+from Components.MediaPlayer import PlayList
+from Tools.Directories import resolveFilename, SCOPE_CONFIG, SCOPE_PLAYLIST, SCOPE_SKIN_IMAGE
 from Components.ServicePosition import ServicePositionGauge
 from Components.ServiceEventTracker import ServiceEventTracker
 from Components.Playlist import PlaylistIOInternal, PlaylistIOM3U, PlaylistIOPLS
@@ -20,7 +18,6 @@ from Screens.InfoBarGenerics import InfoBarSeek, InfoBarAudioSelection, InfoBarC
 from ServiceReference import ServiceReference
 from Screens.ChoiceBox import ChoiceBox
 from Screens.HelpMenu import HelpableScreen
-from bisect import insort
 import random
 
 class MyPlayList(PlayList):
@@ -237,9 +234,9 @@ class MediaPlayer(Screen, InfoBarSeek, InfoBarAudioSelection, InfoBarCueSheetSup
                # Get rid of this...by finding the first "/"
                # FIXME: this should be fixed in the servicemp3.cpp handler
                filename = filename[filename.find("/"):]
-               path = os.path.dirname(filename)
+               path = os_path.dirname(filename)
                pngname = path + "/" + "folder.png"
-               if not os.path.exists(pngname):
+               if not os_path.exists(pngname):
                        pngname = resolveFilename(SCOPE_SKIN_IMAGE, "no_coverArt.png")
                if self.coverArtFileName != pngname:
                        self.coverArtFileName = pngname
@@ -347,7 +344,7 @@ class MediaPlayer(Screen, InfoBarSeek, InfoBarAudioSelection, InfoBarCueSheetSup
                                if r is None:
                                        return
                                text = r.getPath()
-                               self["currenttext"].setText(os.path.basename(text))
+                               self["currenttext"].setText(os_path.basename(text))
 
                if self.currList == "playlist":
                        t = self.playlist.getSelection()
@@ -419,7 +416,7 @@ class MediaPlayer(Screen, InfoBarSeek, InfoBarAudioSelection, InfoBarCueSheetSup
                elif choice[1] == "copyfiles":
                        self.stopEntry()
                        self.playlist.clear()
-                       self.copyDirectory(os.path.dirname(self.filelist.getSelection()[0].getPath()) + "/", recursive = False)
+                       self.copyDirectory(os_path.dirname(self.filelist.getSelection()[0].getPath()) + "/", recursive = False)
                        self.playServiceRefEntry(self.filelist.getServiceRef())
                elif choice[1] == "playlist":
                        self.switchToPlayList()
@@ -484,7 +481,7 @@ class MediaPlayer(Screen, InfoBarSeek, InfoBarAudioSelection, InfoBarCueSheetSup
                if name is not None:
                        name = name.strip()
                        if name == "":
-                               name = time.strftime("%y%m%d_%H%M%S")
+                               name = strftime("%y%m%d_%H%M%S")
                        name += ".e2pls"
                        self.playlistIOInternal.clear()
                        for x in self.playlist.list:
@@ -495,7 +492,7 @@ class MediaPlayer(Screen, InfoBarSeek, InfoBarAudioSelection, InfoBarCueSheetSup
                listpath = []
                playlistdir = resolveFilename(SCOPE_PLAYLIST)
                try:
-                       for i in os.listdir(playlistdir):
+                       for i in os_listdir(playlistdir):
                                listpath.append((i,playlistdir + i))
                except IOError,e:
                        print "Error while scanning subdirs ",e
@@ -515,7 +512,7 @@ class MediaPlayer(Screen, InfoBarSeek, InfoBarAudioSelection, InfoBarCueSheetSup
                listpath = []
                playlistdir = resolveFilename(SCOPE_PLAYLIST)
                try:
-                       for i in os.listdir(playlistdir):
+                       for i in os_listdir(playlistdir):
                                listpath.append((i,playlistdir + i))
                except IOError,e:
                        print "Error while scanning subdirs ",e
@@ -528,7 +525,7 @@ class MediaPlayer(Screen, InfoBarSeek, InfoBarAudioSelection, InfoBarCueSheetSup
 
        def deleteConfirmed(self, confirmed):
                if confirmed:
-                       os.remove(self.delname)
+                       os_remove(self.delname)
 
        def clear_playlist(self):
                self.stopEntry()
index 34c534b..1b0ef1a 100644 (file)
@@ -2,9 +2,7 @@ from Screen import Screen
 from Components.Sources.List import List
 from Components.ActionMap import ActionMap
 from Components.Header import Header
-from Components.Button import Button
 from Components.Label import Label
-from Components.ProgressBar import ProgressBar
 from Components.config import configfile
 from Components.Sources.Clock import Clock
 from Components.PluginComponent import plugins
@@ -12,8 +10,6 @@ from Components.PluginComponent import plugins
 from Tools.Directories import resolveFilename, SCOPE_SKIN
 
 import xml.dom.minidom
-from xml.dom import EMPTY_NAMESPACE
-from skin import elementsWithTag
 
 from Screens.Setup import Setup, getSetupTitle
 
index 6fb389c..0133de2 100644 (file)
@@ -1,10 +1,9 @@
 from Screen import Screen
 from Components.ActionMap import ActionMap
 from Components.Label import Label
-from Components.Button import Button
 from Components.Pixmap import Pixmap
 from Components.MenuList import MenuList
-from enigma import eSize, ePoint, eTimer
+from enigma import eTimer
 
 class MessageBox(Screen):
        TYPE_YESNO = 0
index d804570..53e3373 100644 (file)
@@ -1,11 +1,6 @@
 from Screen import Screen
 from Components.ActionMap import NumberActionMap
-from Components.Label import Label
-from Components.Button import Button
-from Components.Pixmap import Pixmap
-from Components.MenuList import MenuList
 from Components.Input import Input
-from enigma import eSize, ePoint
 
 class MinuteInput(Screen):
                def __init__(self, session, basemins = 5):
index ab36add..d345bdd 100644 (file)
@@ -1,6 +1,5 @@
 from Screen import Screen
 from Components.Button import Button
-from Components.ServiceList import ServiceList
 from Components.ActionMap import ActionMap
 from Components.MovieList import MovieList
 from Components.DiskInfo import DiskInfo
index 12ffbb3..f64be90 100644 (file)
@@ -1,5 +1,4 @@
 from Screen import Screen
-from Components.VolumeBar import VolumeBar
 
 class Mute(Screen):
        def __init__(self, session):
index a2b15e9..9514e7f 100644 (file)
@@ -1,11 +1,11 @@
 from Screen import Screen
 from Components.ActionMap import ActionMap
-from Components.ConfigList import ConfigList, ConfigListScreen
+from Components.ConfigList import ConfigListScreen
 from Components.config import config, getConfigListEntry
 from Components.Network import iNetwork
 from Components.Label import Label
 from Components.MenuList import MenuList
-from Components.config import config, ConfigYesNo, ConfigIP, NoSave, ConfigSubsection, ConfigNothing
+from Components.config import config, ConfigYesNo, ConfigIP, NoSave, ConfigNothing
 from Components.PluginComponent import plugins
 from Plugins.Plugin import PluginDescriptor
 
index c0561b5..f39afed 100644 (file)
@@ -1,17 +1,15 @@
 from Screen import Screen
-from Components.ConfigList import ConfigList, ConfigListScreen
+from Components.ConfigList import ConfigListScreen
 from Components.ActionMap import NumberActionMap
 from Components.config import config, getConfigListEntry, ConfigNothing, NoSave, ConfigPIN
-from Components.ServiceList import ServiceList
 from Components.ParentalControlList import ParentalControlEntryComponent, ParentalControlList 
 from Components.ParentalControl import parentalControl
 from Screens.ChoiceBox import ChoiceBox
 from Screens.MessageBox import MessageBox
-from Screens.InputBox import InputBox, Input, PinInput
+from Screens.InputBox import PinInput
 from Screens.ChannelSelection import service_types_tv
 from Tools.BoundFunction import boundFunction
-from ServiceReference import ServiceReference
-from enigma import eServiceCenter, eServiceReference, eTimer
+from enigma import eServiceCenter, eTimer
 from operator import itemgetter
 
 class ProtectedScreen:
index 67c5b84..d7d0e16 100644 (file)
@@ -1,9 +1,6 @@
 from Screens.Screen import Screen
-from Screens.MessageBox import MessageBox
 from Components.ActionMap import NumberActionMap
 from Components.Label import Label
-from Components.MenuList import MenuList
-from Components.ChoiceList import ChoiceEntryComponent, ChoiceList
 
 # this is not so great.
 MAX_X = 720
index b3360b6..5459ccc 100644 (file)
@@ -2,11 +2,9 @@ from Screen import Screen
 
 from enigma import eConsoleAppContainer, loadPNG
 
-from Components.MenuList import MenuList
 from Components.ActionMap import ActionMap
 from Components.PluginComponent import plugins
 from Components.PluginList import *
-from Components.config import config
 from Components.Label import Label
 from Screens.MessageBox import MessageBox
 from Screens.Console import Console
index 4190b94..9b60fae 100644 (file)
@@ -1,6 +1,5 @@
-from enigma import iPlayableService, loadPNG, iRdsDecoder, ePoint, gRGB
+from enigma import iPlayableService, loadPNG, iRdsDecoder
 from Screens.Screen import Screen
-from Components.Sources.RdsDecoder import RdsDecoder
 from Components.ActionMap import NumberActionMap
 from Components.ServiceEventTracker import ServiceEventTracker
 from Components.Pixmap import Pixmap
index 2921972..644d1d9 100644 (file)
@@ -1,6 +1,6 @@
 from Screen import Screen
 from Components.ActionMap import ActionMap
-from Components.ConfigList import ConfigList, ConfigListScreen
+from Components.ConfigList import ConfigListScreen
 from Components.MenuList import MenuList
 from Components.NimManager import nimmanager
 from Components.config import getConfigListEntry, config, ConfigNothing
index 351b421..6bdedc8 100644 (file)
@@ -1,9 +1,9 @@
 from Screen import Screen
-from ServiceScan import *
+from ServiceScan import ServiceScan
 from Components.config import config, ConfigSubsection, ConfigSelection, \
-       ConfigYesNo, ConfigInteger, getConfigListEntry, ConfigSlider, ConfigSatlist, ConfigEnableDisable
+       ConfigYesNo, ConfigInteger, getConfigListEntry, ConfigSlider, ConfigEnableDisable
 from Components.ActionMap import NumberActionMap
-from Components.ConfigList import ConfigList, ConfigListScreen
+from Components.ConfigList import ConfigListScreen
 from Components.NimManager import nimmanager, getConfigSatlist
 from Components.Label import Label
 from Screens.MessageBox import MessageBox
index cfcb528..ed61d9d 100644 (file)
@@ -1,8 +1,7 @@
-from Components.HTMLSkin import *
-from Components.GUISkin import *
+from Components.HTMLSkin import HTMLSkin
+from Components.GUISkin import GUISkin
 from Components.Sources.Source import Source
-
-import sys
+from Components.GUIComponent import GUIComponent
 
 class Screen(dict, HTMLSkin, GUISkin):
 
index 83cdcd5..01cfc61 100644 (file)
@@ -1,9 +1,8 @@
-from Components.HTMLComponent import *
-from Components.GUIComponent import *
+from Components.HTMLComponent import HTMLComponent
+from Components.GUIComponent import GUIComponent
 from Screen import Screen
 from Components.ActionMap import ActionMap
 from Components.Label import Label
-from Components.MenuList import MenuList
 from ServiceReference import ServiceReference
 from enigma import eListboxPythonMultiContent, eListbox, gFont, iServiceInformation, eServiceCenter
 
index 432d824..f6fb09b 100644 (file)
@@ -1,12 +1,11 @@
 from Screen import Screen
 from Components.ActionMap import NumberActionMap
-from Components.config import config, KEY_LEFT, KEY_RIGHT, KEY_OK
-from Components.ConfigList import ConfigList, ConfigListScreen
+from Components.config import config
+from Components.ConfigList import ConfigListScreen
 from Components.Label import Label
 from Components.Pixmap import Pixmap
 
 import xml.dom.minidom
-from xml.dom import EMPTY_NAMESPACE
 from skin import elementsWithTag
 
 from Tools import XMLTools
index f582ff2..f724bc5 100644 (file)
@@ -5,8 +5,6 @@ from Components.Input import Input
 from Components.Label import Label
 from Components.Pixmap import Pixmap
 from Components.config import config
-from SleepTimer import SleepTimerEntry
-import time
 
 class SleepTimerEdit(Screen):
        def __init__(self, session):
index a4ba604..b572bd8 100644 (file)
@@ -2,7 +2,7 @@ from Screen import Screen
 from Components.ActionMap import ActionMap
 from Components.config import config
 from Components.AVSwitch import AVSwitch
-from enigma import eDVBVolumecontrol, eDBoxLCD, eServiceReference
+from enigma import eDVBVolumecontrol, eDBoxLCD
 from Components.Sources.Clock import Clock
 
 inStandby = None
index b67ca9d..1734d73 100644 (file)
@@ -1,6 +1,6 @@
 from Wizard import Wizard, wizardManager
 
-from Components.Pixmap import *
+from Components.Pixmap import Pixmap, MovingPixmap
 from Components.config import config, ConfigBoolean, configfile
 
 from LanguageSelection import LanguageSelection
index ac2937f..e3cdd71 100644 (file)
@@ -1,8 +1,7 @@
 from Screen import Screen
 from Components.ActionMap import ActionMap
-from Components.ConfigList import ConfigList, ConfigListScreen
+from Components.ConfigList import ConfigListScreen
 from Components.config import config, getConfigListEntry, ConfigNothing
-from Components.Label import Label
 
 from Tools.ISO639 import LanguageCodes
 
index c50d819..7f94090 100644 (file)
@@ -1,8 +1,7 @@
 from Screen import Screen
-from Components.config import *
-from Components.ActionMap import ActionMap, NumberActionMap
-from Components.ConfigList import ConfigList, ConfigListScreen
-from Components.Button import Button
+from Components.config import ConfigClock, ConfigDateTime, getConfigListEntry
+from Components.ActionMap import NumberActionMap
+from Components.ConfigList import ConfigListScreen
 from Components.Label import Label
 from Components.Pixmap import Pixmap
 import time
index babf28f..08bc12b 100644 (file)
@@ -1,6 +1,5 @@
 from Components.ActionMap import ActionMap
 from Components.Button import Button
-from Components.Label import Label
 from Components.MenuList import MenuList
 from Components.TimerList import TimerList, TimerEntryComponent
 from Components.TimerSanityCheck import TimerSanityCheck
@@ -11,7 +10,7 @@ from Screens.MessageBox import MessageBox
 from ServiceReference import ServiceReference
 from TimerEntry import TimerEntry, TimerLog
 from Tools.BoundFunction import boundFunction
-from time import *
+from time import time
 
 class TimerEditList(Screen):
        def __init__(self, session):
index a54358f..cc43a9a 100644 (file)
@@ -1,15 +1,13 @@
 from Screen import Screen
 import ChannelSelection
 from ServiceReference import ServiceReference
-from Components.config import ConfigSelection, ConfigText, ConfigSubList, ConfigSubsection, ConfigDateTime, ConfigClock, ConfigYesNo, getConfigListEntry
-from Components.ActionMap import ActionMap, NumberActionMap
-from Components.ConfigList import ConfigList, ConfigListScreen
+from Components.config import ConfigSelection, ConfigText, ConfigSubList, ConfigDateTime, ConfigClock, ConfigYesNo, getConfigListEntry
+from Components.ActionMap import NumberActionMap
+from Components.ConfigList import ConfigListScreen
 from Components.MenuList import MenuList
 from Components.Button import Button
-from Components.NimManager import nimmanager
 from Components.Label import Label
 from Components.Pixmap import Pixmap
-from Screens.MessageBox import MessageBox
 from Screens.ChoiceBox import ChoiceBox
 from RecordTimer import AFTEREVENT
 from enigma import eEPGCache
index bab07f2..c90ed36 100644 (file)
@@ -1,9 +1,7 @@
 from Wizard import Wizard, wizardManager
 
 from Components.config import ConfigBoolean, config
-from Components.Pixmap import *
-
-from LanguageSelection import LanguageSelection
+from Components.Pixmap import MovingPixmap
 
 config.misc.firstruntutorial = ConfigBoolean(default = True)
 
index bd45827..1900e9a 100644 (file)
@@ -6,8 +6,7 @@ from Screens.HelpMenu import HelpableScreen
 from Components.config import config
 from Components.Label import Label
 from Components.Slider import Slider
-from Components.ActionMap import HelpableActionMap, NumberActionMap
-from Components.Pixmap import *
+from Components.ActionMap import NumberActionMap
 from Components.MenuList import MenuList
 from Components.ConfigList import ConfigList
 
index 0a703e7..975d3ad 100644 (file)
@@ -1,5 +1,5 @@
 # -*- coding: utf-8 -*-
-import os
+from os import path as os_path, mkdir, system
 
 SCOPE_TRANSPONDERDATA = 0
 SCOPE_SYSETC = 1
@@ -49,7 +49,7 @@ def resolveFilename(scope, base = "", path_prefix = None):
        if base[0:2] == "~/":
                # you can only use the ~/ if we have a prefix directory
                assert path_prefix is not None
-               base = os.path.join(path_prefix, base[2:])
+               base = os_path.join(path_prefix, base[2:])
 
        # don't resolve absolute paths
        if base[0:1] == '/':
@@ -59,7 +59,7 @@ def resolveFilename(scope, base = "", path_prefix = None):
 
        if path[1] == PATH_CREATE:
                if (not pathExists(defaultPaths[scope][0])):
-                       os.mkdir(path[0])
+                       mkdir(path[0])
                        
        #if len(base) > 0 and base[0] == '/':
                #path = ("", None)
@@ -70,21 +70,21 @@ def resolveFilename(scope, base = "", path_prefix = None):
                        for x in fallbackPaths[scope]:
                                if x[1] == FILE_COPY:
                                        if fileExists(x[0] + base):
-                                               os.system("cp " + x[0] + base + " " + path[0] + base)
+                                               system("cp " + x[0] + base + " " + path[0] + base)
                                                break
                                elif x[1] == FILE_MOVE:
                                        if fileExists(x[0] + base):
-                                               os.system("mv " + x[0] + base + " " + path[0] + base)
+                                               system("mv " + x[0] + base + " " + path[0] + base)
                                                break
                                elif x[1] == PATH_COPY:
                                        if pathExists(x[0]):
                                                if not pathExists(defaultPaths[scope][0]):
-                                                       os.mkdir(path[0])
-                                               os.system("cp -a " + x[0] + "* " + path[0])
+                                                       mkdir(path[0])
+                                               system("cp -a " + x[0] + "* " + path[0])
                                                break
                                elif x[1] == PATH_MOVE:
                                        if pathExists(x[0]):
-                                               os.system("mv " + x[0] + " " + path[0])
+                                               system("mv " + x[0] + " " + path[0])
                                                break
 
        
@@ -94,11 +94,11 @@ def resolveFilename(scope, base = "", path_prefix = None):
        # this is only the BASE - an extension must be added later.
        
 def pathExists(path):
-       return os.path.exists(path)
+       return os_path.exists(path)
 
 def createDir(path):
        try:
-               os.mkdir(path)
+               mkdir(path)
        except:
                ret = 0
        else:
index dac72cf..9399029 100644 (file)
@@ -1,9 +1,9 @@
-import time
+from time import localtime, time
 
 def FuzzyTime(t):
-       d = time.localtime(t)
-       nt = time.time()
-       n = time.localtime()
+       d = localtime(t)
+       nt = time()
+       n = localtime()
        
        if d[:3] == n[:3]:
                # same day
@@ -22,18 +22,18 @@ def FuzzyTime(t):
        return (date, timeres)
 
 if __name__ == "__main__":
-       print "now:    %s %s" % FuzzyTime(time.time())
-       print "1 day:  %s %s" % FuzzyTime(time.time() + 86400)
-       print "2 days: %s %s" % FuzzyTime(time.time() + 86400 *2)
-       print "2 days: %s %s" % FuzzyTime(time.time() + 86400 *3)
-       print "2 days: %s %s" % FuzzyTime(time.time() + 86400 *4)
-       print "2 days: %s %s" % FuzzyTime(time.time() + 86400 *5)
-       print "2 days: %s %s" % FuzzyTime(time.time() + 86400 *6)
-       print "2 days: %s %s" % FuzzyTime(time.time() + 86400 *7)
-       print "2 days: %s %s" % FuzzyTime(time.time() + 86400 *8)
-       print "2 days: %s %s" % FuzzyTime(time.time() + 86400 *9)
-       print "2 days: %s %s" % FuzzyTime(time.time() + 86400 *10)
-       print "2 days: %s %s" % FuzzyTime(time.time() + 86400 *11)
-       print "2 days: %s %s" % FuzzyTime(time.time() + 86400 *12)
-       print "2 days: %s %s" % FuzzyTime(time.time() + 86400 *13)
-       print "2 days: %s %s" % FuzzyTime(time.time() + 86400 *14)
+       print "now:    %s %s" % FuzzyTime(time())
+       print "1 day:  %s %s" % FuzzyTime(time() + 86400)
+       print "2 days: %s %s" % FuzzyTime(time() + 86400 *2)
+       print "2 days: %s %s" % FuzzyTime(time() + 86400 *3)
+       print "2 days: %s %s" % FuzzyTime(time() + 86400 *4)
+       print "2 days: %s %s" % FuzzyTime(time() + 86400 *5)
+       print "2 days: %s %s" % FuzzyTime(time() + 86400 *6)
+       print "2 days: %s %s" % FuzzyTime(time() + 86400 *7)
+       print "2 days: %s %s" % FuzzyTime(time() + 86400 *8)
+       print "2 days: %s %s" % FuzzyTime(time() + 86400 *9)
+       print "2 days: %s %s" % FuzzyTime(time() + 86400 *10)
+       print "2 days: %s %s" % FuzzyTime(time() + 86400 *11)
+       print "2 days: %s %s" % FuzzyTime(time() + 86400 *12)
+       print "2 days: %s %s" % FuzzyTime(time() + 86400 *13)
+       print "2 days: %s %s" % FuzzyTime(time() + 86400 *14)
index 91c8002..e69de29 100644 (file)
@@ -1,18 +0,0 @@
-import time
-from enigma import eDVBLocalTimeHandler
-
-org_time = time.time
-time_difference = eDVBLocalTimeHandler.getInstance().difference()
-
-def myTime():
-       global time_difference
-       t = org_time()
-       t += time_difference
-       return t
-
-def timeChangedCallback():
-       global time_difference
-       time_difference = eDVBLocalTimeHandler.getInstance().difference()
-
-eDVBLocalTimeHandler.getInstance().m_timeUpdated.get().append(timeChangedCallback)
-time.time = myTime
\ No newline at end of file
index df8d887..ae2e875 100644 (file)
@@ -1,2 +1,5 @@
 all = ["RedirectTime.py", "FuzzyDate.py", "XMLTools.py", "Directories.py", "KeyBindings.py", "BoundFunction.py", "ISO639.py", "Notifications",
        "RedirectOutput.py", "DreamboxHardware.py"]
+
+import RedirectTime
+import RedirectOutput
\ No newline at end of file
index ddc9af4..969d345 100644 (file)
--- a/mytest.py
+++ b/mytest.py
@@ -1,4 +1,3 @@
-from Tools import RedirectOutput, RedirectTime
 from enigma import runMainloop, eDVBDB, eTimer, quitMainloop, eDVBVolumecontrol, \
        getDesktop, ePythonConfigQuery, eAVSwitch, eWindow, eServiceEvent
 from tools import *
@@ -17,8 +16,6 @@ from Screens.SimpleSummary import SimpleSummary
 
 from sys import stdout, exc_info
 
-import ServiceReference
-
 from Components.ParentalControl import InitParentalControl
 InitParentalControl()
 
@@ -551,8 +548,6 @@ Components.SetupDevices.InitSetupDevices()
 import Components.RFmod
 Components.RFmod.InitRFmod()
 
-import Components.NimManager
-
 import Screens.Ci
 Screens.Ci.InitCiConfig()
 
diff --git a/skin.py b/skin.py
index cb43326..0721391 100644 (file)
--- a/skin.py
+++ b/skin.py
@@ -1,12 +1,10 @@
 import xml.dom.minidom
-from xml.dom import EMPTY_NAMESPACE
 from os import path
 
 from enigma import eSize, ePoint, gFont, eWindow, eLabel, ePixmap, eWindowStyleManager, \
        loadPNG, addFont, gRGB, eWindowStyleSkinned
 
 from Components.config import ConfigSubsection, ConfigText, config
-from Components.Element import Element
 from Components.Converter.Converter import Converter
 from Tools.Directories import resolveFilename, SCOPE_SKIN, SCOPE_SKIN_IMAGE, SCOPE_FONTS
 from Tools.Import import my_import
index 11c5b23..bf23262 100644 (file)
@@ -359,7 +359,5 @@ def init_all():
        import Components.RFmod
        Components.RFmod.InitRFmod()
 
-       import Components.NimManager
-
        import Screens.Ci
        Screens.Ci.InitCiConfig()
index 0ad53af..d4ac23d 100644 (file)
--- a/timer.py
+++ b/timer.py
@@ -1,8 +1,6 @@
 from bisect import insort
-from time import strftime, time, localtime, gmtime, mktime
-from calendar import timegm
+from time import strftime, time, localtime, mktime
 from enigma import eTimer
-import calendar
 import datetime
 
 class TimerEntry: