entity.py
branchstable
changeset 3664 af7ca3597b8d
parent 3626 017869a514c3
child 3665 42f3a66cab51
--- 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