def setup_paste_factories(conf):
 global app_factory, filter_factory
 app_factory = AppFactory(conf)
 filter_factory = FilterFactory(conf)

def setup_paste_factories ( conf ) : global app_factory , filter_factory app_factory = AppFactory ( conf ) filter_factory = FilterFactory ( conf )
set up the generic paste app and filter factories .