fix file permissions of non-executable files
[enigma2-plugins.git] / networkwizard / src / plugin.py
1 # for localized messages
2 from __init__ import _
3
4 from Screens.Screen import Screen
5 from Plugins.Plugin import PluginDescriptor
6 from Components.SystemInfo import SystemInfo
7 from Components.ConfigList import ConfigListScreen
8 from Components.config import getConfigListEntry, config
9 from Components.config import config
10 #from WizardPluginLanguage import _
11
12 def NetworkWizardMain(session, **kwargs):
13         session.open(NetworkWizard)
14
15 def startSetup(menuid):
16         if menuid != "system": 
17                 return [ ]
18
19         return [(_("Network Wizard") + "...", NetworkWizardMain, "nw_wizard", 40)]
20
21 def NetworkWizard(*args, **kwargs):
22         from NetworkWizard import NetworkWizard
23         return NetworkWizard(*args, **kwargs)
24
25 def Plugins(**kwargs):
26         list = []
27         if config.misc.firstrun.value:
28                 list.append(PluginDescriptor(name=_("Network Wizard"), where = PluginDescriptor.WHERE_WIZARD, fnc=(25, NetworkWizard)))
29         return list