def apply_request_extensions(request, extensions=None):
 if (extensions is None):
  extensions = request.registry.queryUtility(IRequestExtensions)
 if (extensions is not None):
  for (name, fn) in iteritems_(extensions.methods):
   method = fn.__get__(request, request.__class__)
   setattr(request, name, method)
  InstancePropertyHelper.apply_properties(request, extensions.descriptors)

def apply_request_extensions ( request , extensions = None ) : if ( extensions is None ) : extensions = request . registry . queryUtility ( IRequestExtensions ) if ( extensions is not None ) : for ( name , fn ) in iteritems_ ( extensions . methods ) : method = fn . __get__ ( request , request . __class__ ) setattr ( request , name , method ) InstancePropertyHelper . apply_properties ( request , extensions . descriptors )
apply request extensions to an instance of :class:pyramid .