symmetric relations: replace bogus rql2sql translation by a hook
The hook ensures X r Y => Y r X iff r is symmetric.
The rql-no-hook data importer receives a small amendment but note
that:
* there exist no test for it
* its actual semantics are undefined
Hence we cannot prove this hunk breaks nothing, because we cannot
prove anything.
Closes #3259713.
try:rtype,=__args__exceptValueError:print'USAGE: cubicweb-ctl shell <instance> detect_cycle.py -- <relation type>'printgraph={}forfromeid,toeidinrql('Any X,Y WHERE X %s Y'%rtype):graph.setdefault(fromeid,[]).append(toeid)fromlogilab.common.graphimportget_cyclesforcycleinget_cycles(graph):print'cycle','->'.join(str(n)fornincycle)