comparison python/html2flux.py @ 620:a43d0205f80b

STUB: python/html2flux.py
author Jeff Hammel <k0scist@gmail.com>
date Wed, 05 Feb 2014 08:33:16 -0800
parents ee3c1b65d6d1
children fbfc02ea7d8e
comparison
equal deleted inserted replaced
619:fd50f457185c 620:a43d0205f80b
21 from lxml import etree 21 from lxml import etree
22 from lsex import lsex # local import 22 from lsex import lsex # local import
23 23
24 # available executables 24 # available executables
25 executables = set([i.rsplit('/', 1)[-1] for i in lsex() ]) 25 executables = set([i.rsplit('/', 1)[-1] for i in lsex() ])
26
27 # TODO: next generation
28 # class HtmlMenu
29 # def _init__(self, html):
30 # if isinstance (html, string):
31 # html =
32 # for item in html
33
34 # class Command
35 # classname = ''
36
37 # class Sudo(Command)
38 # classname = 'sudo'
39 # programs = (('gksudo',),)
26 40
27 def readmenu(dl, output, top=True): 41 def readmenu(dl, output, top=True):
28 """read menu from an <dl> tag""" 42 """read menu from an <dl> tag"""
29 # TODO: probably don't really need lxml 43 # TODO: probably don't really need lxml
30 44