def make_cascade(loader, global_conf, catch='404', **local_conf):
 catch = map(int, converters.aslist(catch))
 apps = []
 for (name, value) in local_conf.items():
  if (not name.startswith('app')):
   raise ValueError(("Bad configuration key %r (=%r); all configuration keys must start with 'app'" % (name, value)))
  app = loader.get_app(value, global_conf=global_conf)
  apps.append((name, app))
 apps.sort()
 apps = [app for (name, app) in apps]
 return Cascade(apps, catch=catch)

def make_cascade ( loader , global_conf , catch = '404' , ** local_conf ) : catch = map ( int , converters . aslist ( catch ) ) apps = [ ] for ( name , value ) in local_conf . items ( ) : if ( not name . startswith ( 'app' ) ) : raise ValueError ( ( "Bad configuration key %r (=%r); all configuration keys must start with 'app'" % ( name , value ) ) ) app = loader . get_app ( value , global_conf = global_conf ) apps . append ( ( name , app ) ) apps . sort ( ) apps = [ app for ( name , app ) in apps ] return Cascade ( apps , catch = catch )
entry point for paste deploy configuration expects configuration like:: [composit:cascade] use = egg:paste#cascade # all start with app and are sorted alphabetically app1 = foo app2 = bar catch = 404 500 .