[PATCH 2 of 2 3.27] Backed out changeset 7d3299d6e655

Philippe Pepiot philippe.pepiot at logilab.fr
Tue Feb 11 10:24:14 CET 2020


# HG changeset patch
# User Philippe Pepiot <philippe.pepiot at logilab.fr>
# Date 1581412972 -3600
#      Tue Feb 11 10:22:52 2020 +0100
# Branch 3.27
# Node ID 2695357a8bfceaee45dcca1bf6d4d978aa474d12
# Parent  50db521e3e53395f93a8a1bdcbd8c5da231361d0
# Available At https://hg.logilab.org/review/cubicweb
#              hg pull https://hg.logilab.org/review/cubicweb -r 2695357a8bfc
Backed out changeset 7d3299d6e655

This is not compatible with python 3.5 and we want to support python 3.5 with cubicweb 3.27

diff --git a/cubicweb/server/hook.py b/cubicweb/server/hook.py
--- a/cubicweb/server/hook.py
+++ b/cubicweb/server/hook.py
@@ -248,7 +248,6 @@ Hooks and operations classes
 
 from logging import getLogger
 from itertools import chain
-from typing import Union, Tuple
 
 from logilab.common.decorators import classproperty, cached
 from logilab.common.logging_ext import set_log_methods
@@ -522,8 +521,8 @@ class Hook(AppObject):
     """
     __select__ = enabled_category()
     # set this in derivated classes
+    events = None
     category = None
-    events: Union[None, Tuple[str], Tuple[str, str]] = None
     order = 0
     # stop pylint from complaining about missing attributes in Hooks classes
     eidfrom = eidto = entity = rtype = repo = None




More information about the cubicweb-devel mailing list