def _log_form_request(plugin_id, user, parameters): """ log the plugin form submission. """ pl = PluginRequest() pl.plugin_id = plugin_id pl.user = user pl.parameters = get_formparameters(parameters) DBSession.add(pl) DBSession.flush() return pl
def _log_form_request(plugin_id, user, parameters): """ log the plugin form submission. """ pl = PluginRequest() pl.plugin_id = plugin_id pl.user = user pl.status = 'PENDING' params = get_formparameters(parameters) debug('set request params %s' % params,) #print ', '.join(['%s (%s) : %s (%s)' % (k, type(k), v, type(v)) for k, v in params.iteritems()]) pl.parameters = params DBSession.add(pl) DBSession.flush() return pl
def _log_form_request(plugin_id, user, parameters): """ log the plugin form submission. """ pl = PluginRequest() pl.plugin_id = plugin_id pl.user = user pl.status = 'PENDING' params = get_formparameters(parameters) debug('set request params %s' % params, ) #print ', '.join(['%s (%s) : %s (%s)' % (k, type(k), v, type(v)) for k, v in params.iteritems()]) pl.parameters = params DBSession.add(pl) DBSession.flush() return pl