summaryrefslogtreecommitdiff
path: root/docs/designdefense.rst
AgeCommit message (Collapse)Author
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-25Fix syntax errors found via manuel, and add manuel-style markers to preventChris McDonough
untestable code blocks from being tested.
2009-12-25Normalize code blocks.Chris McDonough
2009-12-19Wording.Chris McDonough
2009-12-19Wording.Chris McDonough
2009-12-19- Add a ``custom_predicates`` argument to the ``Configurator``Chris McDonough
``add_view`` method, the ``bfg_view`` decorator and the attribute list of the ZCML ``view`` directive. If ``custom_predicates`` is specified, it must be a sequence of predicate callables (a predicate callable accepts two arguments: ``context`` and ``request`` and returns ``True`` or ``False``). The associated view callable will only be invoked if all custom predicates return ``True``. Use one or more custom predicates when no existing predefined predicate is useful. Predefined and custom predicates can be mixed freely. - Add a ``custom_predicates`` argument to the ``Configurator`` ``add_route`` and the attribute list of the ZCML ``route`` directive. If ``custom_predicates`` is specified, it must be a sequence of predicate callables (a predicate callable accepts two arguments: ``context`` and ``request`` and returns ``True`` or ``False``). The associated route will match will only be invoked if all custom predicates return ``True``, else route matching continues. Use one or more custom predicates when no existing predefined predicate is useful. Predefined and custom predicates can be mixed freely.
2009-12-10Docs.Chris McDonough
2009-12-09(no commit message)Chris McDonough
2009-11-28ZCA -> ZCA registryChris McDonough
2009-11-28Docs.Chris McDonough
2009-11-19Namespace packaging.Chris McDonough
2009-11-18Another topic.Chris McDonough
2009-11-17NSFW name.Chris McDonough
2009-11-15(no commit message)Chris McDonough
2009-11-15They can ignore it.Chris McDonough
2009-11-14Meh.Chris McDonough
2009-11-14Get sample right.Chris McDonough
2009-11-14Wording edits.Chris McDonough
2009-11-14Trivial.Chris McDonough
2009-11-14Murg.Chris McDonough
2009-11-14Muh.Chris McDonough
2009-11-14Dependencies, extending mods.Chris McDonough
2009-11-14Get Ks right.Chris McDonough
2009-11-14Spellcheck.Chris McDonough
2009-11-14Don't preordain.Chris McDonough
2009-11-14Extensibility.Chris McDonough
2009-11-14Moo.Chris McDonough
2009-11-14Wording.Chris McDonough
2009-11-14Murg.Chris McDonough
2009-11-14XML.Chris McDonough
2009-11-14repoze.bfg vs. repozeChris McDonough
2009-11-13MVC.Chris McDonough
2009-11-13Cheating.Chris McDonough
2009-11-13Bigness.Chris McDonough
2009-11-13Rails.Chris McDonough
2009-11-13Tweak.Chris McDonough
2009-11-13Moar.Chris McDonough
2009-11-13Moar.Chris McDonough
2009-11-12Tweaks.Chris McDonough
2009-11-12- Add "Defending BFG Design" chapter.Chris McDonough