Exemplo n.º 1
0
	def _showVpn(self):
		if self.mMode == Wizard.ModeExtensive:
			choice = self._option(33969, 33743, 33821)
			if choice == Wizard.ChoiceLeft: return self._cancel()
			choice = self._option(33970, 33743, 33821)
			if choice == Wizard.ChoiceLeft: return self._cancel()
			choice = self._option(33971, 33897, 33927)
			if choice == Wizard.ChoiceLeft: return Wizard.OptionCancelStep
			vpn.Vpn().configuration(settings = False, title = 33895, finish = 33821, introduction = False)
		return Wizard.OptionContinue
Exemplo n.º 2
0
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
'''

from resources.lib.extensions import tools
from resources.lib.extensions import interface
from resources.lib.extensions import vpn
from resources.lib.extensions import library
from resources.lib.extensions import settings
from resources.lib.extensions import server

# Adapt Settings
settings.Adaption.adapt()

# Launch Gaia
tools.System.launchAutomatic()

# Launch VPN
vpn.Vpn().launchAutomatic()

# Launch Lightpack
tools.Lightpack().launchAutomatic()

# Local Library Update
library.Library.service()

# Context Menu
interface.Context.initialize()

# Server
#server.Server.run()
Exemplo n.º 3
0
	from resources.lib.extensions import network
	network.Networker.informationDialog()

####################################################
# VPN
####################################################

elif action == 'vpnNavigator':
	from resources.lib.indexers import navigator
	navigator.navigator(type = type, kids = kids).vpnNavigator()

elif action == 'vpnVerification':
	from resources.lib.extensions import vpn
	from resources.lib.extensions import tools
	settings = tools.Converter.boolean(params.get('settings'))
	vpn.Vpn().verification(settings = settings)

elif action == 'vpnConfiguration':
	from resources.lib.extensions import vpn
	from resources.lib.extensions import tools
	settings = tools.Converter.boolean(params.get('settings'))
	vpn.Vpn().configuration(settings = settings)

elif action == 'vpnSettings':
	from resources.lib.extensions import vpn
	vpn.Vpn().settings()

elif action == 'vpnLaunch':
	from resources.lib.extensions import vpn
	execution = params.get('execution')
	vpn.Vpn().launch(execution = execution)