summaryrefslogtreecommitdiff
path: root/docs/tutorials/bfgwiki
AgeCommit message (Collapse)Author
2010-10-25rename bfgwiki to wikiChris McDonough
2010-10-25convert bfgwiki tutorial to pyramidChris McDonough
2010-10-25first cut at converting bfg to pyramidChris McDonough
2010-10-14updateChris McDonough
2010-10-13merge tutorialfix branchChris McDonough
2010-10-12double howeverChris McDonough
2010-09-09fix typoDavid Glick
2010-06-30fix referencesChris McDonough
2010-06-23- The authorization chapter of the SQLAlchemy Wiki TutorialChris McDonough
(docs/tutorials/bfgwiki2) was changed to demonstrate authorization via a group rather than via a direct username.
2010-06-23do an indirection through a group at the behest of alex marandonChris McDonough
2010-04-14Add "exception views" work contributed primarily by Andrey Popp by merging ↵Chris McDonough
the "phash" branch.
2010-02-22Typo noticed by Douglas Cerna.Paul Everitt
2010-01-18Prep for b1Chris McDonough
Merge a bunch of paper-based docs fixes Configure logging during bfgshell.
2010-01-11Merge of andrew-docs branch.Chris McDonough
2010-01-05Normalize.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-28Fix margin overruns.Chris McDonough
2009-12-28Fix overlong lines.Chris McDonough
2009-12-28Adjust for 7.5x9.25in output.Chris McDonough
2009-12-27Rendering cleanups.Chris McDonough
2009-12-25Fix syntax errors found via manuel, and add manuel-style markers to preventChris McDonough
untestable code blocks from being tested.
2009-12-24Roles, refresh.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-12-10Docs.Chris McDonough
2009-12-09(no commit message)Chris McDonough
2009-12-09Excise make_app from docs.Chris McDonough
2009-11-28Updates.Chris McDonough
2009-11-10More usage of 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.
2009-10-30Update documentation after root factory changes.Chris McDonough
2009-10-11Use 1.1 index.Chris McDonough
Explain where "request" comes from in templates.
2009-10-10Move to renderers.Chris McDonough
2009-10-10cleanUp is no longer necessary.Chris McDonough
2009-10-10More renderer conversions.Chris McDonough
2009-10-10Use a renderer.Chris McDonough
2009-10-10Rely on new attrs of notfound_view so we can use a renderer.Chris McDonough
2009-10-10Convert bfgwiki to use renderers.Chris McDonough
2009-10-09view -> static directive.Chris McDonough
2009-10-09view -> static directive.Chris McDonough
2009-07-06- Minor edits to tutorials for accuracy based on feedback.Chris McDonough
- Back to dev.
2009-07-05Spelling.Chris McDonough
2009-07-05Deleting the database.Chris McDonough
2009-07-05Delete the database.Chris McDonough
2009-07-03Audit grammar in bfgwik2 tutorial.Chris McDonough
2009-07-03bfgwiki tutorial audit.Chris McDonough
2009-07-03Note no-spaces-in-path issue.Chris McDonough
2009-07-02- Fix inaccuracies and import errors in bfgwiki (traversal+ZODB) andChris McDonough
bfgwiki2 (urldispatch+SA) tutorials. - Use bfgsite index for all tutorial setup.cfg files.
2009-07-02Get import and logged in detection working right.Chris McDonough