def ErrorDocuments(app, global_conf, mapper, **kw):
 if (global_conf is None):
  global_conf = {}
 return RecursiveMiddleware(StatusBasedForward(app, global_conf=global_conf, mapper=mapper, **kw))

def ErrorDocuments ( app , global_conf , mapper , ** kw ) : if ( global_conf is None ) : global_conf = { } return RecursiveMiddleware ( StatusBasedForward ( app , global_conf = global_conf , mapper = mapper , ** kw ) )
wraps the app in error docs using paste recursivemiddleware and errordocumentsmiddleware .