equal
deleted
inserted
replaced
13 import csv |
13 import csv |
14 import re |
14 import re |
15 from StringIO import StringIO |
15 from StringIO import StringIO |
16 |
16 |
17 from logilab.mtconverter import xml_escape, html_unescape |
17 from logilab.mtconverter import xml_escape, html_unescape |
18 |
18 from logilab.common.date import ustrftime |
19 from cubicweb.utils import ustrftime |
19 |
20 |
20 |
21 def rql_for_eid(eid): |
21 def rql_for_eid(eid): |
22 """return the rql query necessary to fetch entity with the given eid. This |
22 """return the rql query necessary to fetch entity with the given eid. This |
23 function should only be used to generate link with rql inside, not to give |
23 function should only be used to generate link with rql inside, not to give |
24 to cursor.execute (in which case you won't benefit from rql cache). |
24 to cursor.execute (in which case you won't benefit from rql cache). |