equal
deleted
inserted
replaced
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'' |