Revert "tools: Executables attribute is redundant in the yaml file."
This reverts commit a5a7e24d4f.
This commit is contained in:
parent
a5a7e24d4f
commit
45200a706f
6 changed files with 25 additions and 149 deletions
|
|
@ -117,11 +117,6 @@ class Entry(collections.UserList):
|
|||
self.appearance_cache = appearance = new_appearance
|
||||
return appearance
|
||||
|
||||
def as_html(self):
|
||||
return ("<td>%s</td><td>%s</td>" %
|
||||
("".join(result.as_html() for result in self.widget),
|
||||
self.path))
|
||||
|
||||
|
||||
def is_path_excluded(path):
|
||||
return any(part.startswith(".") for part in path.split(os.path.sep))
|
||||
|
|
@ -190,17 +185,6 @@ def get_diff_stats(old_files, new_files):
|
|||
return added_count, removed_count, modified_count
|
||||
|
||||
|
||||
def appearance_as_html(appearance):
|
||||
lines = []
|
||||
all_styles = set()
|
||||
for line in appearance:
|
||||
html, styles = termstr.TermStr(line).as_html()
|
||||
all_styles.update(styles)
|
||||
lines.append(html)
|
||||
return ("\n".join(style.as_html() for style in all_styles) +
|
||||
'\n<pre>' + "<br>".join(lines) + "</pre>")
|
||||
|
||||
|
||||
class Summary:
|
||||
|
||||
def __init__(self, root_path, jobs_added_event):
|
||||
|
|
@ -436,11 +420,6 @@ class Summary:
|
|||
if result.tool == tool:
|
||||
self.refresh_result(result)
|
||||
|
||||
def as_html(self):
|
||||
return ("<pre><table>%s</table></pre>" %
|
||||
"\n".join("<tr>%s</tr>" % row.as_html()
|
||||
for row in self._column))
|
||||
|
||||
|
||||
class Log:
|
||||
|
||||
|
|
@ -794,20 +773,6 @@ class Screen:
|
|||
def toggle_fullscreen(self):
|
||||
self._is_fullscreen = not self._is_fullscreen
|
||||
|
||||
def to_html(self):
|
||||
with open("tester.html", "w") as tester:
|
||||
tester.write("<html><body>")
|
||||
# tester.write(appearance_as_html(self._listing.appearance((100,300))))
|
||||
# tester.write(appearance_as_html(self.appearance((100,100))))
|
||||
tester.write(appearance_as_html(fill3.Border(self._summary.get_selection().result).appearance_min()))
|
||||
tester.write("</body></html>")
|
||||
|
||||
def summary_to_html(self):
|
||||
with open("tester.html", "w") as tester:
|
||||
tester.write("<html><body>")
|
||||
tester.write(self._summary.as_html())
|
||||
tester.write("</body></html>")
|
||||
|
||||
def _select_entry_at_position(self, x, y, view_width, view_height):
|
||||
border_width = 1
|
||||
if x < border_width or y < border_width or x > view_width or \
|
||||
|
|
@ -935,8 +900,7 @@ class Screen:
|
|||
({"N"}, move_to_next_issue_of_tool), ({"e"}, edit_file),
|
||||
({"q"}, quit_), ({"p"}, toggle_pause), ({"r"}, refresh),
|
||||
({"R"}, refresh_tool), ({"tab"}, toggle_focus),
|
||||
({"f"}, toggle_fullscreen), ({"H"}, to_html),
|
||||
({"S"}, summary_to_html)]
|
||||
({"f"}, toggle_fullscreen)]
|
||||
|
||||
|
||||
def add_watch_manager_to_mainloop(root_path, mainloop, on_filesystem_change,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue