summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2009-11-23- Most uses of the ZCA threadlocal API (the ``getSiteManager``,Chris McDonough
``getUtility``, ``getAdapter``, ``getMultiAdapter`` threadlocal API) have been removed from the core. Instead, when a threadlocal is necessary, the core uses the ``repoze.bfg.threadlocal.get_current_registry`` API to obtain the registry.
2009-11-23Disuse ZCA threadlocal API.Chris McDonough
2009-11-23Disuse ZCA threadlocal API.Chris McDonough
2009-11-23Disuse ZCA threadlocal API.Chris McDonough
2009-11-23Excise ZCA threadlocal API.Chris McDonough
2009-11-23Excise ZCA threadlocal API.Chris McDonough
2009-11-23- The ``repoze.bfg.scripting.get_root`` API now uses a 'real' WebObChris McDonough
request rather than a FakeRequest when it sets up the request as a threadlocal. - The ``repoze.bfg.traversal.traverse`` API now uses a 'real' WebOb request rather than a FakeRequest when it calls the traverser. - The ``repoze.bfg.request.FakeRequest`` class has been removed. ``repoze.bfg.url.route_url`` ``repoze.bfg.url.model_url`` ``repoze.bfg.url.static_url`` ``repoze.bfg.traversal.virtual_root`` Each of these functions now expects to be called with a request object that has a ``registry`` attribute which represents the current ZCA registry. Get rid of extraneous uses of ZCA threadlocal API.
2009-11-23Unused import.Chris McDonough
2009-11-23 ``repoze.bfg.security.has_permission``Chris McDonough
``repoze.bfg.security.authenticated_userid`` ``repoze.bfg.security.effective_principals`` ``repoze.bfg.security.view_execution_permitted`` ``repoze.bfg.security.remember`` ``repoze.bfg.security.forget`` Each of these functions now expects to be called with a request object that has a ``registry`` attribute which represents the current ZCA registry. Previously these functions used the ZCA threadlocal API to get the current registry.
2009-11-23Docstring.Chris McDonough
2009-11-23Adjust.Chris McDonough
2009-11-23Tweaks.Chris McDonough
2009-11-22Add Trove classifiers added by Martin.Chris McDonough
2009-11-22Renderings.Chris McDonough
2009-11-22Rendering.Chris McDonough
2009-11-22Rendering tweaks.Chris McDonough
2009-11-22some suggestions for alternative wording on the introduction. The second and ↵Carlos de la Guardia
third paragraphs were very redundant.
2009-11-22Docs tweaks.Chris McDonough
2009-11-22Test load_zcml.Chris McDonough
2009-11-22Murg 2.Chris McDonough
2009-11-22Murg.Chris McDonough
2009-11-21Typo.Chris McDonough
2009-11-21Add meager API docs for Configurator.Chris McDonough
2009-11-21Note unreleasedness.Chris McDonough
2009-11-21Use a sidebar.Chris McDonough
2009-11-21Beginnings of explaining configuration modes.Chris McDonough
2009-11-21Name.Chris McDonough
2009-11-21Minor idiom cleanups.Chris McDonough
2009-11-21No wrappers need a registry.Chris McDonough
2009-11-21_owrap_view doesn't need the registry.Chris McDonough
2009-11-21_map_view doesn't need a registry argument.Chris McDonough
2009-11-21Changelog.Chris McDonough
2009-11-21- "Hybrid mode" applications (applications which explicitly usedChris McDonough
traversal *after* url dispatch via ``<route>`` paths containing the ``*traverse`` element) were broken in 1.1-final and all 1.1 alpha and beta releases. Views registered without a ``route_name`` route shadowed views registered with a ``route_name`` inappropriately.
2009-11-21Turn wrapper methods back into functions to avoid keeping around referencesChris McDonough
to Configurator in closures.
2009-11-20Hack to support KARL unit tests.Chris McDonough
2009-11-20Passable stab at supporting an imperative mode.Chris McDonough
ZCML directives which accept paths now register absolute paths, while imperative registrations now register resource specifications.
2009-11-19If pkg_or_module is None, treat it as the __main__ package.Chris McDonough
2009-11-19Try it.Chris McDonough
2009-11-19Try it.Chris McDonough
2009-11-19Unused.Chris McDonough
2009-11-19Rendering.Chris McDonough
2009-11-19Formatting and grammar.Chris McDonough
2009-11-19Fixtures required by new tests.Chris McDonough
2009-11-19Coverage masked by zcml tests.Chris McDonough
2009-11-19100% coverage.Chris McDonough
2009-11-19Coverage.Chris McDonough
2009-11-19Move renderer tests from zcml tests to configure tests.Chris McDonough
2009-11-19- Each of the ``repoze.bfg.view.render_view``,Chris McDonough
``repoze.bfg.view.render_view_to_iterable``, ``repoze.bfg.view.render_view_to_response``, ``repoze.bfg.view.append_slash_notfound_view``, ``repoze.bfg.view.default_notfound_view``, ``repoze.bfg.view.default_forbidden_view``, and the ``repoze.bfg.configuration.rendered_response`` functions now expects to be called with a request object that has a ``registry`` attribute which represents the current ZCA registry. This should only be a problem when passing a custom request object to code which ends up calling these functions in a unit test. To retrofit tests that end up calling these functions which expect to be able to use a non-registry-aware request object, use the ``repoze.bfg.threadlocal.get_current_request`` API in the test to create the request; this will return a ``repoze.bfg.testing.DummyRequest`` that has the current registry as its ``registry`` attribute. Alternatively, use the ``repoze.bfg.threadlocal.get_current_registry`` API: call this function and add an attribute to your unit test request object named ``registry`` with the result. - The ``repoze.bfg.view.derive_view`` callable has been removed. Use ``repoze.bfg.configuration.Configurator.derive_view`` instead (still not an API, however).
2009-11-19Reword notfound and forbidden view handlers.Chris McDonough
2009-11-19Typo.Chris McDonough