Update src files for ZODB wiki tutorial
- ref #3081
| | |
| | | |
| | | zodbconn.uri = file://%(here)s/Data.fs?connection_cache_size=20000 |
| | | |
| | | retry.attempts = 3 |
| | | |
| | | # By default, the toolbar only appears for clients from IP addresses |
| | | # '127.0.0.1' and '::1'. |
| | | # debugtoolbar.hosts = 127.0.0.1 ::1 |
| | |
| | | |
| | | zodbconn.uri = file://%(here)s/Data.fs?connection_cache_size=20000 |
| | | |
| | | retry.attempts = 3 |
| | | |
| | | ### |
| | | # wsgi server configuration |
| | | ### |
| | |
| | | CHANGES = f.read() |
| | | |
| | | requires = [ |
| | | 'pyramid', |
| | | 'plaster_pastedeploy', |
| | | 'pyramid >= 1.9a', |
| | | 'pyramid_chameleon', |
| | | 'pyramid_debugtoolbar', |
| | | 'pyramid_retry', |
| | | 'pyramid_tm', |
| | | 'pyramid_zodbconn', |
| | | 'transaction', |
| | |
| | | 'sosecret', callback=groupfinder, hashalg='sha512') |
| | | authz_policy = ACLAuthorizationPolicy() |
| | | config = Configurator(root_factory=root_factory, settings=settings) |
| | | settings = config.get_settings() |
| | | settings['tm.manager_hook'] = 'pyramid_tm.explicit_manager' |
| | | config.set_authentication_policy(authn_policy) |
| | | config.set_authorization_policy(authz_policy) |
| | | config.include('pyramid_chameleon') |
| | | config.include('pyramid_tm') |
| | | config.include('pyramid_retry') |
| | | config.include('pyramid_zodbconn') |
| | | config.add_static_view('static', 'static', cache_max_age=3600) |
| | | config.scan() |
| | |
| | | |
| | | - Upgrade packaging tools. |
| | | |
| | | env/bin/pip install --upgrade pip setuptools wheel |
| | | env/bin/pip install --upgrade pip setuptools |
| | | |
| | | - Install the project in editable mode with its testing requirements. |
| | | |
| | |
| | | |
| | | zodbconn.uri = file://%(here)s/Data.fs?connection_cache_size=20000 |
| | | |
| | | retry.attempts = 3 |
| | | |
| | | # By default, the toolbar only appears for clients from IP addresses |
| | | # '127.0.0.1' and '::1'. |
| | | # debugtoolbar.hosts = 127.0.0.1 ::1 |
| | |
| | | |
| | | zodbconn.uri = file://%(here)s/Data.fs?connection_cache_size=20000 |
| | | |
| | | retry.attempts = 3 |
| | | |
| | | ### |
| | | # wsgi server configuration |
| | | ### |
| | |
| | | CHANGES = f.read() |
| | | |
| | | requires = [ |
| | | 'pyramid', |
| | | 'plaster_pastedeploy', |
| | | 'pyramid >= 1.9a', |
| | | 'pyramid_chameleon', |
| | | 'pyramid_debugtoolbar', |
| | | 'pyramid_retry', |
| | | 'pyramid_tm', |
| | | 'pyramid_zodbconn', |
| | | 'transaction', |
| | |
| | | """ This function returns a Pyramid WSGI application. |
| | | """ |
| | | config = Configurator(root_factory=root_factory, settings=settings) |
| | | settings = config.get_settings() |
| | | settings['tm.manager_hook'] = 'pyramid_tm.explicit_manager' |
| | | config.include('pyramid_chameleon') |
| | | config.include('pyramid_tm') |
| | | config.include('pyramid_retry') |
| | | config.include('pyramid_zodbconn') |
| | | config.add_static_view('static', 'static', cache_max_age=3600) |
| | | config.scan() |
| | |
| | | |
| | | - Upgrade packaging tools. |
| | | |
| | | env/bin/pip install --upgrade pip setuptools wheel |
| | | env/bin/pip install --upgrade pip setuptools |
| | | |
| | | - Install the project in editable mode with its testing requirements. |
| | | |
| | |
| | | |
| | | zodbconn.uri = file://%(here)s/Data.fs?connection_cache_size=20000 |
| | | |
| | | retry.attempts = 3 |
| | | |
| | | # By default, the toolbar only appears for clients from IP addresses |
| | | # '127.0.0.1' and '::1'. |
| | | # debugtoolbar.hosts = 127.0.0.1 ::1 |
| | |
| | | |
| | | zodbconn.uri = file://%(here)s/Data.fs?connection_cache_size=20000 |
| | | |
| | | retry.attempts = 3 |
| | | |
| | | ### |
| | | # wsgi server configuration |
| | | ### |
| | |
| | | CHANGES = f.read() |
| | | |
| | | requires = [ |
| | | 'pyramid', |
| | | 'plaster_pastedeploy', |
| | | 'pyramid >= 1.9a', |
| | | 'pyramid_chameleon', |
| | | 'pyramid_debugtoolbar', |
| | | 'pyramid_retry', |
| | | 'pyramid_tm', |
| | | 'pyramid_zodbconn', |
| | | 'transaction', |
| | |
| | | """ This function returns a Pyramid WSGI application. |
| | | """ |
| | | config = Configurator(root_factory=root_factory, settings=settings) |
| | | settings = config.get_settings() |
| | | settings['tm.manager_hook'] = 'pyramid_tm.explicit_manager' |
| | | config.include('pyramid_chameleon') |
| | | config.include('pyramid_tm') |
| | | config.include('pyramid_retry') |
| | | config.include('pyramid_zodbconn') |
| | | config.add_static_view('static', 'static', cache_max_age=3600) |
| | | config.scan() |
| | |
| | | |
| | | - Upgrade packaging tools. |
| | | |
| | | env/bin/pip install --upgrade pip setuptools wheel |
| | | env/bin/pip install --upgrade pip setuptools |
| | | |
| | | - Install the project in editable mode with its testing requirements. |
| | | |
| | |
| | | |
| | | zodbconn.uri = file://%(here)s/Data.fs?connection_cache_size=20000 |
| | | |
| | | retry.attempts = 3 |
| | | |
| | | # By default, the toolbar only appears for clients from IP addresses |
| | | # '127.0.0.1' and '::1'. |
| | | # debugtoolbar.hosts = 127.0.0.1 ::1 |
| | |
| | | |
| | | zodbconn.uri = file://%(here)s/Data.fs?connection_cache_size=20000 |
| | | |
| | | retry.attempts = 3 |
| | | |
| | | ### |
| | | # wsgi server configuration |
| | | ### |
| | |
| | | CHANGES = f.read() |
| | | |
| | | requires = [ |
| | | 'pyramid', |
| | | 'plaster_pastedeploy', |
| | | 'pyramid >= 1.9a', |
| | | 'pyramid_chameleon', |
| | | 'pyramid_debugtoolbar', |
| | | 'pyramid_retry', |
| | | 'pyramid_tm', |
| | | 'pyramid_zodbconn', |
| | | 'transaction', |
| | |
| | | """ This function returns a Pyramid WSGI application. |
| | | """ |
| | | config = Configurator(root_factory=root_factory, settings=settings) |
| | | settings = config.get_settings() |
| | | settings['tm.manager_hook'] = 'pyramid_tm.explicit_manager' |
| | | config.include('pyramid_chameleon') |
| | | config.include('pyramid_tm') |
| | | config.include('pyramid_retry') |
| | | config.include('pyramid_zodbconn') |
| | | config.add_static_view('static', 'static', cache_max_age=3600) |
| | | config.scan() |
| | |
| | | |
| | | zodbconn.uri = file://%(here)s/Data.fs?connection_cache_size=20000 |
| | | |
| | | retry.attempts = 3 |
| | | |
| | | # By default, the toolbar only appears for clients from IP addresses |
| | | # '127.0.0.1' and '::1'. |
| | | # debugtoolbar.hosts = 127.0.0.1 ::1 |
| | |
| | | |
| | | zodbconn.uri = file://%(here)s/Data.fs?connection_cache_size=20000 |
| | | |
| | | retry.attempts = 3 |
| | | |
| | | ### |
| | | # wsgi server configuration |
| | | ### |
| | |
| | | CHANGES = f.read() |
| | | |
| | | requires = [ |
| | | 'pyramid', |
| | | 'plaster_pastedeploy', |
| | | 'pyramid >= 1.9a', |
| | | 'pyramid_chameleon', |
| | | 'pyramid_debugtoolbar', |
| | | 'pyramid_retry', |
| | | 'pyramid_tm', |
| | | 'pyramid_zodbconn', |
| | | 'transaction', |
| | |
| | | 'sosecret', callback=groupfinder, hashalg='sha512') |
| | | authz_policy = ACLAuthorizationPolicy() |
| | | config = Configurator(root_factory=root_factory, settings=settings) |
| | | settings = config.get_settings() |
| | | settings['tm.manager_hook'] = 'pyramid_tm.explicit_manager' |
| | | config.set_authentication_policy(authn_policy) |
| | | config.set_authorization_policy(authz_policy) |
| | | config.include('pyramid_chameleon') |
| | | config.include('pyramid_tm') |
| | | config.include('pyramid_retry') |
| | | config.include('pyramid_zodbconn') |
| | | config.add_static_view('static', 'static', cache_max_age=3600) |
| | | config.scan() |
| | |
| | | |
| | | zodbconn.uri = file://%(here)s/Data.fs?connection_cache_size=20000 |
| | | |
| | | retry.attempts = 3 |
| | | |
| | | # By default, the toolbar only appears for clients from IP addresses |
| | | # '127.0.0.1' and '::1'. |
| | | # debugtoolbar.hosts = 127.0.0.1 ::1 |
| | |
| | | |
| | | zodbconn.uri = file://%(here)s/Data.fs?connection_cache_size=20000 |
| | | |
| | | retry.attempts = 3 |
| | | |
| | | ### |
| | | # wsgi server configuration |
| | | ### |
| | |
| | | CHANGES = f.read() |
| | | |
| | | requires = [ |
| | | 'pyramid', |
| | | 'plaster_pastedeploy', |
| | | 'pyramid >= 1.9a', |
| | | 'pyramid_chameleon', |
| | | 'pyramid_debugtoolbar', |
| | | 'pyramid_retry', |
| | | 'pyramid_tm', |
| | | 'pyramid_zodbconn', |
| | | 'transaction', |
| | |
| | | """ This function returns a Pyramid WSGI application. |
| | | """ |
| | | config = Configurator(root_factory=root_factory, settings=settings) |
| | | settings = config.get_settings() |
| | | settings['tm.manager_hook'] = 'pyramid_tm.explicit_manager' |
| | | config.include('pyramid_chameleon') |
| | | config.include('pyramid_tm') |
| | | config.include('pyramid_retry') |
| | | config.include('pyramid_zodbconn') |
| | | config.add_static_view('static', 'static', cache_max_age=3600) |
| | | config.scan() |