summaryrefslogtreecommitdiff
path: root/docs/narr/MyProject/myproject
AgeCommit message (Collapse)Author
2016-12-27narr/project - update for cookiecuttersSteve Piercy
- update source files - update project.png - fix literalinclude reference in logging
2016-04-11remove theme.min.css, it serves no purposeMichael Merickel
2016-04-11- add trailing line endingSteve Piercy
2016-04-11- update narr/project.rst to use pip instead of setup.pySteve Piercy
- update starter scaffold tests and setup.py (used in `narr/project.rst` and `narr/testing.rst`) - update links to documentation
2015-12-14- Remove broken integration test example from testing and source file, per #2172Steve Piercy
- Update functional test with explicit instructions and to sync with actual starter scaffold
2015-12-08update narrative docs and literalinclude source files that use the starter ↵Steve Piercy
scaffold to reflect its current state
2014-11-25Include code examples for integration and functional tests in docs #1001Matt Russell
Wrap lines as per convention.
2014-04-24Replaced non-ascii copyright character with HTML equivalent.Fenton Travers
2014-01-03modified MyProject srcBlaise Laflamme
2013-09-05update the MyProject example app to use pyramid_chameleonMichael Merickel
2013-08-03"Web Application Development Framework" -> "Web Framework". Yay.Paul Everitt
2012-11-29Sync MyProject files with the starter scaffoldPatricio Paez
- Line numbers are mentioned only in the Creating a Pyramid Project chapter; those that are affected were updated.
2012-07-29prettify CSS stored in docs tutorialsDavid Gay
2011-12-09fix links againChris McDonough
2011-12-09fix template linksChris McDonough
2011-12-05the starter scaffold now uses url dispatch; add a minimal section about ↵Chris McDonough
using another WSGI server; random docs fixes
2011-11-26fix to match starter packageChris McDonough
2011-11-12make myproject project relocatable (as per Ken's changes)Chris McDonough
2011-07-21- Change all scaffolding templates that point to docs.pylonsproject.org toChris McDonough
use ``/projects/pyramid/current`` rather than ``/projects/pyramid/dev``.
2011-01-28convert all tabs to spaces in templates (sorry, blaise, i may have to use an ↵Chris McDonough
older version of sphinx which doesnt respect tab-width)
2011-01-25- Use © instead of copyright symbol in paster templates / tutorialChris McDonough
templates for the benefit of folks who cutnpaste and save to a non-UTF8 format.
2011-01-12Reformatted myproject mytemplate.ptBlaise Laflamme
2011-01-12Changed google font link and use request.static_url in myprojectBlaise Laflamme
2011-01-12Changed some references from pylonshq.com to pylonsproject.orgBlaise Laflamme
2011-01-12FeaturesChris McDonough
-------- - ``pyramid.testing.setUp`` and ``pyramid.testing.tearDown`` have been undeprecated. They are now the canonical setup and teardown APIs for test configuration, replacing "direct" creation of a Configurator. This is a change designed to provide a facade that will protect against any future Configurator deprecations. Paster Templates ---------------- - All paster templates now use ``pyramid.testing.setUp`` and ``pyramid.testing.tearDown`` rather than creating a Configurator "by hand" within their ``tests.py`` module, as per decision in features above. Documentation ------------- - The wiki and wiki2 tutorials now use ``pyramid.testing.setUp`` and ``pyramid.testing.tearDown`` rather than creating a Configurator "by hand", as per decision in features above. - The "Testing" narrative chapter now explains ``pyramid.testing.setUp`` and ``pyramid.testing.tearDown`` instead of Configurator creation and ``Configurator.begin()`` and ``Configurator.end()``.
2010-12-19fix startup chapterChris McDonough
2010-12-18model -> resourceChris McDonough
2010-12-18model -> resourceChris McDonough
2010-12-09fix docs: pyramid.configuration -> pyramid.configChris McDonough
2010-11-27Updated MyProject template + snapshot in narrative docBlaise Laflamme
2010-11-19- Remove calls to config.begin()/config.end() from startup config code inChris McDonough
tutorials and paster templates (no longer required).
2010-11-10fix project chapter to deal with paster template changesChris McDonough
2010-11-04- Move static dir from pkg/templates/ to /pkg/ in pyramid_* paster templates.Chris McDonough
2010-11-04fix project documentation to account for starter paster template changesChris McDonough
2010-11-04fix project documentation to account for starter paster template changesChris McDonough
2010-10-25convert narrative docs to PyramidChris McDonough
2010-10-25first cut at converting bfg to pyramidChris McDonough
2010-01-05Normalize.Chris McDonough
2010-01-03Overlong lines.Chris McDonough
2010-01-03Overlong lines.Chris McDonough
2010-01-03FeaturesChris McDonough
-------- - The ``Configurator.add_view`` method now accepts an argument named ``context``. This is an alias for the older argument named ``for_``; it is preferred over ``for_``, but ``for_`` will continue to be supported "forever". - The ``view`` ZCML directive now accepts an attribute named ``context``. This is an alias for the older attribute named ``for``; it is preferred over ``for``, but ``for`` will continue to be supported "forever". - The ``Configurator.add_route`` method now accepts an argument named ``view_context``. This is an alias for the older argument named ``view_for``; it is preferred over ``view_for``, but ``view_for`` will continue to be supported "forever". - The ``route`` ZCML directive now accepts an attribute named ``view_context``. This is an alias for the older attribute named ``view_for``; it is preferred over ``view_for``, but ``view_for`` will continue to be supported "forever". Documentation and Paster Templates ---------------------------------- - All uses of the ``Configurator.add_view`` method that used its ``for_`` argument now use the ``context``argument instead. - All uses of the ``Configurator.add_route`` method that used its ``view_for`` argument now use the ``view_context``argument instead. - All uses of the ``view`` ZCML directive that used its ``for`` attribute now use the ``context`` attribute instead. - All uses of the ``route`` ZCML directive that used its ``view_for`` attribute now use the ``view_context`` attribute instead.
2009-12-29Overlong lines.Chris McDonough
Fix table.
2009-12-28Adjust for 7.5x9.25in output.Chris McDonough
2009-12-27Rendering cleanups.Chris McDonough
2009-12-17FeaturesChris McDonough
-------- - The ``Configurator`` object now has two new methods: ``begin`` and ``end``. The ``begin`` method is meant to be called before any "configuration" begins (e.g. before ``add_view``, et. al are called). The ``end`` method is meant to be called after all "configuration" is complete. Previously, before there was imperative configuration at all (1.1 and prior), configuration begin and end was invariably implied by the process of loading a ZCML file. When a ZCML load happened, the threadlocal data structure containing the request and registry was modified before the load, and torn down after the load, making sure that all framework code that needed ``get_current_registry`` for the duration of the ZCML load was satisfied. Some API methods called during imperative configuration, (such as ``Configurator.add_view`` when a renderer is involved) end up for historical reasons calling ``get_current_registry``. However, in 1.2a5 and below, the Configurator supplied no functionality that allowed people to make sure that ``get_current_registry`` returned the registry implied by the configurator being used. ``begin`` now serves this purpose. Inversely, ``end`` pops the thread local stack, undoing the actions of ``begin``. We make this boundary explicit to reduce the potential for confusion when the configurator is used in different circumstances (e.g. in unit tests and app code vs. just in initial app setup). Existing code written for 1.2a1-1.2a5 which does not call ``begin`` or ``end`` continues to work in the same manner it did before. It is however suggested that this code be changed to call ``begin`` and ``end`` to reduce the potential for confusion in the future. - All ``paster`` templates which generate an application skeleton now make use of the new ``begin`` and ``end`` methods of the Configurator they use in their respective copies of ``run.py`` and ``tests.py``. Documentation ------------- - All documentation that makes use of a ``Configurator`` object to do application setup and test setup now makes use of the new ``begin`` and ``end`` methods of the configurator. Bug Fixes --------- - When a ``repoze.bfg.exceptions.NotFound`` or ``repoze.bfg.exceptions.Forbidden`` *class* (as opposed to instance) was raised as an exception within a root factory (or route root factory), the exception would not be caught properly by the ``repoze.bfg.`` Router and it would propagate to up the call stack, as opposed to rendering the not found view or the forbidden view as would have been expected.
2009-11-28Document the request-only calling convention as the default.Chris McDonough
2009-11-27Get rid of ``zcml_file`` argument in configurator constructor in favor of ↵Chris McDonough
the load_zcml API. Get rid of hook_zca argument in configurator constructor in favor of a ``hook_zca`` method. Provide an ``unhook_zca`` method.
2009-11-23- The ``repoze.bfg.router.make_app`` function is now nominallyChris McDonough
deprecated. Its import and usage does not throw a warning, nor will it probably ever disappear. However, using a ``repoze.bfg.configuration.Configurator`` class is now the preferred way to generate a WSGI application. - The ``run.py`` module in various ``repoze.bfg`` ``paster`` templates now use a ``repoze.bfg.configuration.Configurator`` class instead of the (now-legacy) ``repoze.bfg.router.make_app`` function to produce a WSGI application.
2009-11-10More setup and teardown.Chris McDonough
2009-11-10TemplatesChris McDonough
--------- - Remove ``ez_setup.py`` and its import from all paster templates, samples, and tutorials for ``distribute`` compatibility. The documentation already explains how to install virtualenv (which will include some ``setuptools`` package), so these files, imports and usages were superfluous. Deprecations ------------ - The ``options`` kw arg to the ``repoze.bfg.router.make_app`` function is deprecated. In its place is the keyword argument ``settings``. The ``options`` keyword continues to work, and a deprecation warning is not emitted when it is detected. However, the paster templates, code samples, and documentation now make reference to ``settings`` rather than ``options``. This change/deprecation was mainly made for purposes of clarity and symmetry with the ``get_settings()`` API and dicussions of "settings" in various places in the docs: we want to use the same name to refer to the same thing everywhere.