Changeset 4871 for ipk/source/system_addonmanager_2_0/usr
- Timestamp:
- Dec 12, 2010, 7:06:08 PM (15 years ago)
- Location:
- ipk/source/system_addonmanager_2_0/usr/lib/enigma2/python/Plugins/Extensions/AddonManager
- Files:
-
- 2 edited
-
downloader.py (modified) (4 diffs)
-
plugin.py (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ipk/source/system_addonmanager_2_0/usr/lib/enigma2/python/Plugins/Extensions/AddonManager/downloader.py
r3927 r4871 55 55 # py_compile.compile("/usr/lib/enigma2/python/Plugins/Extensions/AddonManager/downloader.py") 56 56 57 version = "2. 09"57 version = "2.12" 58 58 serverurl = "" 59 59 activenam = "" … … 72 72 73 73 activesource = "http://kati910.aaf-board.info/dbase" 74 #activesource = "http://97.74.32.10/dbase/ufs-e2" 74 75 activenam = "Addons-Server" 75 76 serverurl = activesource + "/E2/" … … 495 496 fd=open("/etc/motd","r") 496 497 for line in fd: 497 if line.find("wElc0me to AAF") > -1:498 if line.find("wElc0me to") > -1: 498 499 aafpointer = aafpointer +1 499 500 fd.close … … 508 509 aafpointer = aafpointer +1 509 510 if url.find("addons.aaf-board.net") > -1: 510 aafpointer = aafpointer +1511 if url.find("ke2.aaf-board.info") > -1:512 511 aafpointer = aafpointer +1 513 512 -
ipk/source/system_addonmanager_2_0/usr/lib/enigma2/python/Plugins/Extensions/AddonManager/plugin.py
r4495 r4871 52 52 53 53 global version 54 # Version 'version' read from import downloader.py 55 #AAF_Panel_Version = 'Addon Manager' 54 global menu 55 56 56 AAF_Panel_Version = 'Addon Manager ' + version 57 57 … … 71 71 72 72 def Plugins(**kwargs): 73 return [ 74 75 #// show Addonpanel in Main Menu 76 #PluginDescriptor(name="Addon-Manager", description="Addonpanel AAF-Enigma2 23/02/2009", where = PluginDescriptor.WHERE_MENU, fnc = Addonpanel), 77 #// show Addonpanel in EXTENSIONS Menu 78 PluginDescriptor(name="Addon-Manager", description="Addonpanel AAF-Enigma2 07/11/2010", where = PluginDescriptor.WHERE_EXTENSIONSMENU, fnc = main) ] 73 return [ PluginDescriptor(name="Addon-Manager", description="Addonpanel AAF-Enigma2 07/11/2010", where = PluginDescriptor.WHERE_EXTENSIONSMENU, fnc = main) ] 79 74 80 75 font = "Regular;18" … … 90 85 91 86 # ------------------------------------------------------------------- 87 class CenterList(MenuList): 88 def __init__(self): 89 MenuList.__init__(self, [], True, eListboxPythonMultiContent) 90 self.l.setItemHeight(25) 91 self.l.setFont(0, gFont('Regular', 20)) 92 93 92 94 class PanelList(MenuList): 93 95 def __init__(self, list, font0 = 24, font1 = 16, itemHeight = 50, enableWrapAround = True): … … 115 117 class Addonpanel(Screen): 116 118 skin = """ 117 <screen name="Aafpanel" flags="wfNoBorder" position="{screen.pos}" size="438,320" title="Addonpanel" backgroundColor="#251e1f20"> 118 <ePixmap position="0,0" zPosition="-1" size="438,320" pixmap="/usr/lib/enigma2/python/Plugins/Extensions/Aafpanel/pics/aaf_menu.png" alphatest="off"/> 119 <ePixmap pixmap="/usr/lib/enigma2/python/Plugins/Extensions/Aafpanel/pics/red_smal.png" position="120,40" size="75,33" alphatest="on" /> 120 <ePixmap pixmap="/usr/lib/enigma2/python/Plugins/Extensions/Aafpanel/pics/green_smal.png" position="195,40" size="75,33" alphatest="on" /> 121 <ePixmap pixmap="/usr/lib/enigma2/python/Plugins/Extensions/Aafpanel/pics/yellow_smal.png" position="270,40" size="75,33" alphatest="on" /> 122 <ePixmap pixmap="/usr/lib/enigma2/python/Plugins/Extensions/Aafpanel/pics/blue_smal.png" position="345,40" size="75,33" alphatest="on" /> 123 <widget name="key_red" position="120,40" zPosition="1" size="75,33" font="Regular;12" halign="center" valign="center" backgroundColor="#9f1313" transparent="1" /> 124 <widget name="key_green" position="195,40" zPosition="1" size="75,33" font="Regular;12" halign="center" valign="center" backgroundColor="#1f771f" transparent="1" /> 125 <widget name="key_yellow" position="270,40" zPosition="1" size="75,33" font="Regular;12" halign="center" valign="center" backgroundColor="#a08500" transparent="1" /> 126 <widget name="key_blue" position="345,40" zPosition="1" size="75,33" font="Regular;12" halign="center" valign="center" backgroundColor="#18188b" transparent="1" /> 127 <widget name="Mlist" position="130,85" size="250,175" zPosition="1" scrollbarMode="showOnDemand" backgroundColor="#251e1f20" transparent="1" /> 119 <screen name="Addonpanel" position="center,center" size="550, 370" title="Addonpanel"> 120 <widget name="Mlist" position="10,10" size="530, 350" scrollbarMode="showOnDemand" enableWrapAround="1" transparent="1" /> 121 <widget name="key_red" position="120,5" zPosition="1" size="75,33" font="Regular;12" halign="center" valign="center" backgroundColor="#9f1313" transparent="1" /> 122 <widget name="key_green" position="195,5" zPosition="1" size="75,33" font="Regular;12" halign="center" valign="center" backgroundColor="#1f771f" transparent="1" /> 123 <widget name="key_yellow" position="270,5" zPosition="1" size="75,33" font="Regular;12" halign="center" valign="center" backgroundColor="#a08500" transparent="1" /> 124 <widget name="key_blue" position="345,5" zPosition="1" size="75,33" font="Regular;12" halign="center" valign="center" backgroundColor="#18188b" transparent="1" /> 128 125 <widget name="label1" position="121,287" size="200,20" font="Regular;20" transparent="1" foregroundColor="#f2e000" halign="center" /> 129 126 </screen>""" … … 168 165 169 166 Screen.__init__(self, session) 170 self["label1"] = Label(AAF_Panel_Version)171 167 self.Mlist = [] 172 168 … … 177 173 self.Mlist.append(MenuEntryItem((AafEntryComponent('Update Addon-Manager'), _("Update Addon-Manager"), 'Update Addon-Manager'))) 178 174 #self.Mlist.append(MenuEntryItem((AafEntryComponent('BA-Image Manager'), _("BA-Image Manager"), 'BA-Image Manager'))) 179 self.onChangedEntry = []180 175 if (getDesktop(0).size().width() == 1280): 176 self["Mlist"] = PanelList([], font0 = 24, font1 = 15, itemHeight = 50) 177 else: 181 178 self["Mlist"] = PanelList([]) 182 else:183 self["Mlist"] = PanelList([], font0=24, font1=15, itemHeight=50) 179 self["Mlist"] = PanelList([], font0 = 24, font1 = 15, itemHeight = 50) 180 184 181 self["Mlist"].l.setList(self.Mlist) 185 182 menu = 0 … … 190 187 if box <> "dm8000": 191 188 evfd.getInstance().vfd_write_string( self['Mlist'].l.getCurrentSelection()[0][1] ) 192 # -------------------------------------------------------------------193 189 194 190 self["key_green"] = Label(" ") 195 191 self["key_red"] = Label(" ") 196 192 self["key_yellow"] = Label(" ") 197 self["key_blue"] = Label("update") 193 self["key_blue"] = Label(" ") 194 self["label1"] = Label(" ") 198 195 199 196 global menu … … 473 470 self.fullfile = self.currDir + self.filename 474 471 ipkpack = self.filename.split(".") 475 476 #ffile = open("/usr/lib/enigma2/python/Plugins/Extensions/UninstallPlugin/aa.txt", "w")477 #ffile.write(self.fullfile)478 #ffile.close()479 480 472 481 473 #Check for reboot
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/openaaf/chrome/common/titannit_trac_banner.png)