use typed_eid stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 14 Oct 2009 12:48:51 +0200
branchstable
changeset 3664 af7ca3597b8d
parent 3663 c74d8ec4cdb2
child 3665 42f3a66cab51
use typed_eid
entity.py
--- a/entity.py	Wed Oct 14 12:48:39 2009 +0200
+++ b/entity.py	Wed Oct 14 12:48:51 2009 +0200
@@ -18,7 +18,7 @@
 from rql import parse
 from rql.utils import rqlvar_maker
 
-from cubicweb import Unauthorized
+from cubicweb import Unauthorized, typed_eid
 from cubicweb.rset import ResultSet
 from cubicweb.selectors import yes
 from cubicweb.appobject import AppObject
@@ -338,7 +338,7 @@
         meaning that the entity has to be created
         """
         try:
-            int(self.eid)
+            typed_eid(self.eid)
             return True
         except (ValueError, TypeError):
             return False