Commit 3f529e2f authored by Philippe Pepiot's avatar Philippe Pepiot
Browse files

Backed out changeset c69421aece24

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

--HG--
branch : 3.27
parent 50122959acbc
......@@ -522,8 +522,8 @@ class Hook(AppObject):
"""
__select__ = enabled_category()
# set this in derivated classes
category = None
events: Union[None, Tuple[str], Tuple[str, str]] = None
category: Union[None, str] = None
order = 0
# stop pylint from complaining about missing attributes in Hooks classes
eidfrom = eidto = entity = rtype = repo = None
......
......@@ -32,7 +32,6 @@ special view (with `self._cw.build_url(...)` for instance)
Many examples are available in :mod:`cubicweb.web.views.actions`.
"""
from typing import Optional
from cubicweb import _
......@@ -49,7 +48,7 @@ class Action(AppObject):
__registry__ = 'actions'
__select__ = match_search_state('normal')
order = 99
category: Optional[str] = 'moreactions'
category = 'moreactions'
# actions in category 'moreactions' can specify a sub-menu in which they should be filed
submenu = None
......
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