def execute_directly(request, query, query_server=None, design=None, on_success_url=None, on_success_params=None, **kwargs):
 if (design is not None):
  authorized_get_design(request, design.id)
 db = dbms.get(request.user, query_server)
 database = query.query.get('database', 'default')
 db.use(database)
 query_history = db.execute_query(query, design)
 watch_url = reverse((get_app_name(request) + ':watch_query_history'), kwargs={'query_history_id': query_history.id})
 get_dict = QueryDict(None, mutable=True)
 if on_success_url:
  if callable(on_success_url):
   on_success_url = on_success_url(query_history)
  get_dict['on_success_url'] = on_success_url
 if on_success_params:
  get_dict.update(on_success_params)
 return format_preserving_redirect(request, watch_url, get_dict)

def execute_directly ( request , query , query_server = None , design = None , on_success_url = None , on_success_params = None , ** kwargs ) : if ( design is not None ) : authorized_get_design ( request , design . id ) db = dbms . get ( request . user , query_server ) database = query . query . get ( 'database' , 'default' ) db . use ( database ) query_history = db . execute_query ( query , design ) watch_url = reverse ( ( get_app_name ( request ) + ':watch_query_history' ) , kwargs = { 'query_history_id' : query_history . id } ) get_dict = QueryDict ( None , mutable = True ) if on_success_url : if callable ( on_success_url ) : on_success_url = on_success_url ( query_history ) get_dict [ 'on_success_url' ] = on_success_url if on_success_params : get_dict . update ( on_success_params ) return format_preserving_redirect ( request , watch_url , get_dict )
execute_directly -> http response for execution this method wraps around dbms .