cubicweb/server/session.py
changeset 12033 1ce12b716e71
parent 12029 3d9883a6068f
child 12039 7514626e1dc5
equal deleted inserted replaced
12032:c16c1805e973 12033:1ce12b716e71
   161 
   161 
   162 
   162 
   163 HOOKS_ALLOW_ALL = object()
   163 HOOKS_ALLOW_ALL = object()
   164 HOOKS_DENY_ALL = object()
   164 HOOKS_DENY_ALL = object()
   165 DEFAULT_SECURITY = object()  # evaluated to true by design
   165 DEFAULT_SECURITY = object()  # evaluated to true by design
   166 
       
   167 
       
   168 class SessionClosedError(RuntimeError):
       
   169     pass
       
   170 
   166 
   171 
   167 
   172 def _open_only(func):
   168 def _open_only(func):
   173     """decorator for Connection method that check it is open"""
   169     """decorator for Connection method that check it is open"""
   174     @functools.wraps(func)
   170     @functools.wraps(func)