def hooks_namespace(k, v):
 hookpoint = k.split('.', 1)[0]
 if isinstance(v, text_or_bytes):
  v = cherrypy.lib.attributes(v)
 if (not isinstance(v, Hook)):
  v = Hook(v)
 cherrypy.serving.request.hooks[hookpoint].append(v)

def hooks_namespace ( k , v ) : hookpoint = k . split ( '.' , 1 ) [ 0 ] if isinstance ( v , text_or_bytes ) : v = cherrypy . lib . attributes ( v ) if ( not isinstance ( v , Hook ) ) : v = Hook ( v ) cherrypy . serving . request . hooks [ hookpoint ] . append ( v )
attach bare hooks declared in config .