web/__init__.py
branchstable
changeset 6106 1e6d93f70d14
parent 5940 0e3ae19b181a
child 6614 4b9a785df0f7
--- a/web/__init__.py	Thu Aug 12 15:58:42 2010 +0200
+++ b/web/__init__.py	Thu Aug 12 16:50:52 2010 +0200
@@ -28,6 +28,7 @@
 
 from cubicweb.web._exceptions import *
 from cubicweb.utils import json_dumps
+from cubicweb.uilib import eid_param
 
 dumps = deprecated('[3.9] use cubicweb.utils.json_dumps instead of dumps')(json_dumps)
 
@@ -44,13 +45,6 @@
     NO  = (_('no'), None)
 
 
-def eid_param(name, eid):
-    assert eid is not None
-    if eid is None:
-        eid = ''
-    return '%s:%s' % (name, eid)
-
-
 from logging import getLogger
 LOGGER = getLogger('cubicweb.web')