[rqlrewrite] if inlined relation has to be moved to a subquery, take care of the object of the relation (closes #1945725)
As the object of the relation is moved to the subquery, all variables/relations representing
some of its attributes or inlined relations should be moved there as well.
This avoid error such as "BadRQLQuery: variable AF should be selected by the subquery"
on security insertion.
/**
* 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 + '"';
}