diff options
| author | Chris McDonough <chrism@plope.com> | 2010-12-27 01:05:14 -0500 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2010-12-27 01:05:14 -0500 |
| commit | d30a83540d98bb803caca74b94ae75f88dd3154b (patch) | |
| tree | 9beca08651e8c0a9f78362c27f2e0e2c0878819a /docs | |
| parent | cfb6c56c2f4ba9fc477de0c461f2b757f6f9d9c1 (diff) | |
| download | pyramid-d30a83540d98bb803caca74b94ae75f88dd3154b.tar.gz pyramid-d30a83540d98bb803caca74b94ae75f88dd3154b.tar.bz2 pyramid-d30a83540d98bb803caca74b94ae75f88dd3154b.zip | |
remove inappropriate use of begin/end
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/narr/hooks.rst | 2 | ||||
| -rw-r--r-- | docs/narr/i18n.rst | 5 |
2 files changed, 0 insertions, 7 deletions
diff --git a/docs/narr/hooks.rst b/docs/narr/hooks.rst index 238ac8328..2917b5254 100644 --- a/docs/narr/hooks.rst +++ b/docs/narr/hooks.rst @@ -621,10 +621,8 @@ performed, enabling you to set up the utility in advance: if __name__ == '__main__': config = Configurator() - config.begin() config.registry.registerUtility(UtilityImplementation()) config.scan() - config.end() app = config.make_wsgi_app() serve(app, host='0.0.0.0') diff --git a/docs/narr/i18n.rst b/docs/narr/i18n.rst index d8cc5cb1c..c2a5b8ce7 100644 --- a/docs/narr/i18n.rst +++ b/docs/narr/i18n.rst @@ -881,11 +881,8 @@ application startup. For example: :linenos: from pyramid.config import Configurator - config.begin() config.add_translation_dirs('my.application:locale/', 'another.application:locale/') - # ... - config.end() A message catalog in a translation directory added via :meth:`pyramid.config.Configurator.add_translation_dirs` @@ -1020,9 +1017,7 @@ For example: from pyramid.config import Configurator config = Configurator() - config.begin() config.set_locale_negotiator(my_locale_negotiator) - config.end() .. note:: You can also add a custom locale negotiator via ZCML. See :ref:`zcml_adding_a_locale_negotiator` |
