import alan.core.structure as struct import alan.core.objects.core as core import alan.core.actions.glob as ga import alan.core.extension import t9n.library as trans import os, sys, commands HOME = os.getenv("HOME") USER = os.getenv("USER") ICONS = os.getenv("ALANICONS") _ = trans.translation_init("alan") # Informations about extension ;) coders = { "Eugenio Paolantonio":"http://blog.medesimo.eu" } infos = {"Coders":coders} class Extension(alan.core.extension.Extension): def exfm(self, filemanager, path): return "%s \"%s\"" % (filemanager, path) def run(self): # Get filemanager filemanager = self.cfg.printv("filemanager") if not filemanager: filemanager = "pcmanfm --new-win" # Default to pcmanfm if not filemanager specified.
#!/usr/bin/env python # -*- coding: utf-8 -*- # # KeepTalking -- Command-Line frontend # Copyright (C) 2012 Semplice Team. All rights reserved. # # This file is part of the keeptalking package. # from keeptalking import core, Locale, Keyboard, TimeZone import os, sys import t9n.library as t9n _ = t9n.translation_init("keeptalking") class GUI: def header(self, section): os.system("clear") print "\n" + section num = 0 while num != len(section): sys.stdout.write("-") num += 1 print "\n" def yesno(self): yn = raw_input(_("Are you sure to continue? [y/n]: ")).lower() if yn == "y": return True
# # Alan: Semplice Menu Extension Framework # Copyright (C) 2011 Eugenio "g7" Paolantonio and the Semplice Team. # Work released under the terms of the GNU GPL License, version 3 or later. # # This file cointain the laiv_installer extension import alan.core.structure as struct import alan.core.objects.core as core import alan.core.actions.glob as ga import alan.core.extension import t9n.library as trans _ = trans.translation_init("linstaller") # Informations about extension ;) coders = { "Eugenio Paolantonio":"http://blog.medesimo.eu" } infos = {"Coders":coders} class Extension(alan.core.extension.Extension): def run(self): # Initiate pipemenu self.menu = struct.PipeMenu() self.menu.start() # add initial tag # Get linstaller configuration file, if any config = self.cfg.printv("config") if not config: config = "default"