[uilib] fix eid_param implementation stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 08 Mar 2011 18:16:44 +0100
branchstable
changeset 7058 ea22892e82d4
parent 7057 daa1da99a071
child 7060 f26a1cbddc91
[uilib] fix eid_param implementation
uilib.py
--- a/uilib.py	Tue Mar 08 18:08:32 2011 +0100
+++ b/uilib.py	Tue Mar 08 18:16:44 2011 +0100
@@ -47,9 +47,8 @@
     return 'Any X WHERE X eid %s' % eid
 
 def eid_param(name, eid):
+    assert name is not None
     assert eid is not None
-    if eid is None:
-        eid = ''
     return '%s:%s' % (name, eid)
 
 def printable_value(req, attrtype, value, props=None, displaytime=True):