Commit ba48fa23 authored by Julien Cristau's avatar Julien Cristau
Browse files

[hooks] silence cubicweb 3.17 deprecation warning

Use int instead of typed_eid.
parent 7a00851fa866
......@@ -12,7 +12,7 @@ __docformat__ = "restructuredtext en"
from logilab.mtconverter import TransformError
from cubicweb import UnknownEid, typed_eid
from cubicweb import UnknownEid
from cubicweb.mail import parse_message_id
from cubicweb.predicates import is_instance
from cubicweb.server import hook
......@@ -35,7 +35,7 @@ class ExtractEmailInformation(hook.Operation):
email =
# should create a Comment ?
info =
origeid = typed_eid(info['eid'])
origeid = int(info['eid'])
origetype = self.session.describe(origeid)[0]
except UnknownEid:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment