Housekeeping: todo updates, move put handler_ methods together in console.py.

This commit is contained in:
Aldo Cortesi 2010-03-01 15:08:39 +13:00
parent ba92d22e1d
commit fbe6e0a820
2 changed files with 16 additions and 12 deletions

View File

@ -1096,6 +1096,16 @@ class ConsoleMaster(controller.Master):
if hasattr(self.statusbar, "refresh_connection"):
self.statusbar.refresh_connection(c)
def process_flow(self, f, r):
if f.match(self.state.beep):
urwid.curses_display.curses.beep()
if f.match(self.state.intercept) and not f.is_replay():
f.intercept()
else:
r.ack()
self.sync_list_view()
self.refresh_connection(f)
# Handlers
def handle_browserconnection(self, r):
f = Flow(r)
@ -1111,16 +1121,6 @@ class ConsoleMaster(controller.Master):
self.sync_list_view()
self.refresh_connection(f)
def process_flow(self, f, r):
if f.match(self.state.beep):
urwid.curses_display.curses.beep()
if f.match(self.state.intercept) and not f.is_replay():
f.intercept()
else:
r.ack()
self.sync_list_view()
self.refresh_connection(f)
def handle_request(self, r):
f = self.state.add_request(r)
if not f:

8
todo
View File

@ -1,6 +1,6 @@
Future:
- Strings view.
- Field parsing and editing.
- On-the-fly generation of keys, signed with a CA
@ -10,7 +10,11 @@ Future:
- Serializing and de-serializing requests and responses.
- Use real non-blocking input handling to minimize cpu load.
- Upstream proxies.
- mitmdump
- Filters
- Sticky cookies
- Pipe to script
- After we add serialization of flows, command-line replay
Bugs: