Esempio n. 1
0
File: plugin.py Progetto: raiju/bs
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
Esempio n. 2
0
File: plugin.py Progetto: bbcf/bs
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
Esempio n. 3
0
File: plugin.py Progetto: yjarosz/bs
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