def dispatch(self, type, detail): if type == WE_COMMAND and detail == WC_RETURN: print '*** SUBMIT ***' else: Form.dispatch(self, type, detail)