changeset 620:a43d0205f80b

STUB: python/html2flux.py
author Jeff Hammel <k0scist@gmail.com>
date Wed, 05 Feb 2014 08:33:16 -0800
parents fd50f457185c
children cd51786972c4
files python/html2flux.py
diffstat 1 files changed, 14 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/python/html2flux.py	Tue Feb 04 14:27:17 2014 -0800
+++ b/python/html2flux.py	Wed Feb 05 08:33:16 2014 -0800
@@ -24,6 +24,20 @@
 # available executables
 executables = set([i.rsplit('/', 1)[-1] for i in lsex() ])
 
+# TODO: next generation
+# class HtmlMenu
+#     def  _init__(self, html):
+#         if isinstance (html, string):
+#             html =
+#         for item in html
+
+# class Command
+#     classname = ''
+
+# class Sudo(Command)
+#     classname = 'sudo'
+#     programs = (('gksudo',),)
+
 def readmenu(dl, output, top=True):
     """read menu from an <dl> tag"""
     # TODO: probably don't really need lxml