web/data/cubicweb.goa.js
author Julien Cristau <julien.cristau@logilab.fr>
Fri, 18 Jul 2014 12:23:01 +0200
changeset 9889 9b42e55e0686
parent 6215 759cf097f5aa
permissions -rw-r--r--
[web] Fix expiry of anonymous sessions (closes #4154479) Things like: try: foo except: bar else: baz doesn't work very well if you expect baz to run even in the exception case. Plus, session.cnx.check() is a dbapi remnant, so drop it and just look at session.mtime.

/**
 *  functions specific to cubicweb on google appengine
 *
 *  :organization: Logilab
 *  :copyright: 2008-2010 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
 *  :contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
 */

/**
 * .. function:: rql_for_eid(eid)
 *
 * overrides rql_for_eid function from htmlhelpers.hs
 */
function rql_for_eid(eid) {
        return 'Any X WHERE X eid "' + eid + '"';
}