hack to install missing file /usr/lib/python2.5/uu.py of the standart python library.
authorRico Schulte <ricoschulte@users.schwerkraft.elitedvb.net>
Sun, 24 Aug 2008 11:20:18 +0000 (11:20 +0000)
committerRico Schulte <ricoschulte@users.schwerkraft.elitedvb.net>
Sun, 24 Aug 2008 11:20:18 +0000 (11:20 +0000)
i dont know how to make this better... if you, remove this

emailclient/CONTROL/control
emailclient/src/plugin.py

index de7fbf3..a24a1a8 100755 (executable)
@@ -6,5 +6,5 @@ Section: extra
 Priority: optional
 Maintainer: 3c5x9 <3c5x9@gmx.net>
 Homepage: n/a
-Depends: enigma2, twisted-web, twisted-mail, python-email, python-pyopenssl 
+Depends: enigma2, twisted-web, twisted-mail, python-email, python-pyopenssl, python-shell
 Source: http://schwerkraft.elitedvb.net/scm/?group_id=11
index 8b2c069..8c2143e 100755 (executable)
@@ -2,6 +2,7 @@ from Components.ActionMap import ActionMap
 from Components.GUIComponent import GUIComponent
 from Components.HTMLComponent import HTMLComponent
 from Components.Label import Label
+from Screens.MessageBox import MessageBox
 from Components.MenuList import MenuList
 from Components.MultiContent import MultiContentEntryText
 from Components.ScrollLabel import ScrollLabel
@@ -510,8 +511,18 @@ def UTF8toUTF7(str):
     return imap4.encoder(str.decode('utf-8'))[0]
 
 def main(session, **kwargs):
-    session.open(EmailScreen)    
-
+    import os,shutil
+    if os.path.isfile('/usr/lib/python2.5/uu.py') is not True:
+        shutil.copy('/usr/lib/enigma2/python/Plugins/Extensions/EmailClient/uu.py', '/usr/lib/python2.5/uu.py')
+        global session2
+        session2 = session
+        session.openWithCallback(MessageCB, MessageBox, 'In order of missing standart python library files\ni have copied the nessary files now.\nBut you have to restart your Box\n to apply this!', type = MessageBox.TYPE_INFO)
+    else:    
+        session.open(EmailScreen)    
+def MessageCB(balblub):
+    global session2
+    session2.open(EmailScreen)  
+        
 def Plugins(path, **kwargs):
     global plugin_path
     plugin_path = path