uilib.py
changeset 4466 8b0ca7904820
parent 4252 6c4f109c2b03
child 5421 8167de96c523
equal deleted inserted replaced
4465:18fb359f5c7a 4466:8b0ca7904820
    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).