uilib.py
branchstable
changeset 6106 1e6d93f70d14
parent 5951 6026582ae4f1
child 6491 ee9a10b6620e
equal deleted inserted replaced
6105:a648c832da1f 6106:1e6d93f70d14
    44     :rtype: str
    44     :rtype: str
    45     :return: the rql query
    45     :return: the rql query
    46     """
    46     """
    47     return 'Any X WHERE X eid %s' % eid
    47     return 'Any X WHERE X eid %s' % eid
    48 
    48 
       
    49 def eid_param(name, eid):
       
    50     assert eid is not None
       
    51     if eid is None:
       
    52         eid = ''
       
    53     return '%s:%s' % (name, eid)
    49 
    54 
    50 def printable_value(req, attrtype, value, props=None, displaytime=True):
    55 def printable_value(req, attrtype, value, props=None, displaytime=True):
    51     """return a displayable value (i.e. unicode string)"""
    56     """return a displayable value (i.e. unicode string)"""
    52     if value is None or attrtype == 'Bytes':
    57     if value is None or attrtype == 'Bytes':
    53         return u''
    58         return u''