remove obsolete .cvsignore files
[enigma2.git] / lib / python / Plugins / Extensions / FileManager / plugin.py
index 11f75a2b0847856d4440522deab93f73b74d114b..62c9e7b2ee6f46d144a4b1e03070f4f326259ac0 100644 (file)
@@ -1,16 +1,9 @@
-from enigma import *
 from Screens.Screen import Screen
 from Screens.Screen import Screen
-from Screens.MessageBox import MessageBox
 from Components.ActionMap import NumberActionMap
 from Components.ActionMap import NumberActionMap
-from Components.Label import Label
-from Components.Input import Input
-from Components.GUIComponent import *
 from Components.Pixmap import Pixmap
 from Components.Pixmap import Pixmap
-from Components.FileList import FileEntryComponent, FileList
+from Components.FileList import FileList
 from Plugins.Plugin import PluginDescriptor
 
 from Plugins.Plugin import PluginDescriptor
 
-import os
-
 class FileManager(Screen):
        skin = """
                <screen position="100,100" size="550,400" title="Test" >
 class FileManager(Screen):
        skin = """
                <screen position="100,100" size="550,400" title="Test" >
@@ -52,7 +45,7 @@ class FileManager(Screen):
                self["text"].right()
        
        def ok(self):
                self["text"].right()
        
        def ok(self):
-               
+       
                if self["list"].canDescent(): # isDir
                        self["list"].descent()
                else:
                if self["list"].canDescent(): # isDir
                        self["list"].descent()
                else:
@@ -66,4 +59,6 @@ def main(session, **kwargs):
        session.open(FileManager)
 
 def Plugins(**kwargs):
        session.open(FileManager)
 
 def Plugins(**kwargs):
-       return PluginDescriptor(name="File-Manager", description="Let's you view/edit files in your Dreambox", where = PluginDescriptor.WHERE_PLUGINMENU, fnc=main)
+       descr = _("Lets you view/edit files in your Dreambox")
+       return [PluginDescriptor(name="File-Manager", description=descr, where = PluginDescriptor.WHERE_PLUGINMENU, fnc=main),
+                       PluginDescriptor(name="File-Manager", description=descr, where = PluginDescriptor.WHERE_EXTENSIONSMENU, fnc=main)]