web/views/magicsearch.py
changeset 8748 f5027f8d2478
parent 8695 358d8bed9626
child 9701 46c8d8701240
--- a/web/views/magicsearch.py	Wed Mar 20 17:58:14 2013 +0100
+++ b/web/views/magicsearch.py	Tue Mar 12 12:50:05 2013 +0100
@@ -29,7 +29,7 @@
 from rql.utils import rqlvar_maker
 from rql.nodes import Relation
 
-from cubicweb import Unauthorized, typed_eid
+from cubicweb import Unauthorized
 from cubicweb.view import Component
 from cubicweb.web.views.ajaxcontroller import ajaxfunc
 
@@ -254,7 +254,7 @@
         """
         # if this is an integer, then directly go to eid
         try:
-            eid = typed_eid(word)
+            eid = int(word)
             return 'Any X WHERE X eid %(x)s', {'x': eid}, 'x'
         except ValueError:
             etype = self._get_entity_type(word)