<s> from cheeseprism . auth import BasicAuthenticationPolicy <EOL> from cheeseprism . index import EnvFactory <EOL> from cheeseprism . request import CPRequest as Request <EOL> from cheeseprism . resources import App <EOL> from pyramid . config import Configurator <EOL> from pyramid . session import UnencryptedCookieSessionFactoryConfig <EOL> from pyramid_jinja2 import renderer_factory <EOL> def main ( global_config , ** settings ) : <EOL> settings . setdefault ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> session_factory = UnencryptedCookieSessionFactoryConfig ( '<STR_LIT>' ) <EOL> config = Configurator ( root_factory = App , settings = settings , <EOL> session_factory = session_factory , <EOL> authentication_policy = BasicAuthenticationPolicy ( BasicAuthenticationPolicy . noop_check ) ) <EOL> config . add_translation_dirs ( '<STR_LIT>' ) <EOL> config . include ( '<STR_LIT>' ) <EOL> config . add_renderer ( '<STR_LIT>' , renderer_factory ) <EOL> config . add_static_view ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> config . scan ( '<STR_LIT>' ) <EOL> config . scan ( '<STR_LIT>' ) <EOL> config . set_request_factory ( Request ) <EOL> config . add_route ( '<STR_LIT>' , '<STR_LIT>' , view = '<STR_LIT>' ) <EOL> settings [ '<STR_LIT>' ] = EnvFactory . from_str ( settings [ '<STR_LIT>' ] ) <EOL> return config . make_wsgi_app ( ) </s>
