--- 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