summaryrefslogtreecommitdiff
path: root/repoze/bfg/tests
AgeCommit message (Collapse)Author
2008-08-30Make WSGIApplicationEvent test work again.Chris McDonough
2008-08-29Added event notification after WSGI application is created and configured.Malthe Borch
2008-08-29model_path and *backwards incompatible change* removing "make_app" and ↵Chris McDonough
"get_options" from __init__.py of repoze.bfg; use repoze.bfg.router:make_app and repoze.bfg.registry:get_options instead.
2008-08-24 - Remove ``sampleapp`` sample application from bfg package itself.Chris McDonough
- Remove dependency on FormEncode (only needed by sampleapp). - Fix paster template generation so that case-sensitivity is preserved for project vs. package name. - Depend on ``z3c.pt`` version 1.0a1 (which requires the ``[lxml]`` extra currently).
2008-08-23 - Read and write a pickled ZCML actions list, stored asChris McDonough
``configure.zcml.pck`` next to the applications's "normal" configuration file. A given bfg app will usually start faster if it's able to read the pickle data. It fails gracefully to reading the real ZCML file if it cannot read the pickle.
2008-08-18 - Generated application differences: ``make_app`` entry pointChris McDonough
renamed to ``app`` in order to have a different name than the bfg function of the same name, to prevent confusion. - Add "options" processing to bfg's ``make_app`` to support runtime options. A new API function named ``get_options`` was added to the registry module. This function is typically used in an application's ``app`` entry point. The Paste config file section for the app can now supply the ``reload_templates`` option, which, if true, will prevent the need to restart the appserver in order for ``z3c.pt`` or XSLT template changes to be detected. - Use only the module name in generated project's "test_suite" (run all tests found in the package). - Default port for generated apps changed from 5432 to 6543 (Postgres default port is 6543).
2008-08-17 - Add ``<bfg:settings>`` directive. This directive currently allowsChris McDonough
only one attribute: ``reload_templates``. If e.g.:: <bfg:settings reload_templates="true"/> is in your application's ZCML, you will not need to restart the appserver in order for ``z3c.pt`` or XSLT template changes to be detected and displayed.
2008-08-17Add RepozeWhoIdentityACLSecurityPolicy; add debug logging.Chris McDonough
2008-08-16Add "get_template" to template module.Chris McDonough
2008-08-12Fix ITraverserFactory lookup; release 0.2.9.Chris McDonough
2008-08-08find_context_from_path -> find_modelChris McDonough
2008-08-08 - Add ``find_context_from_path`` and ``find_root`` traversal APIs.Chris McDonough
In the process, make ITraverser a uni-adapter (on context) rather than a multiadapter (on context and request).
2008-08-06 - Small url dispatch overhaul: the ``connect`` method of theChris McDonough
``urldispatch.RoutesMapper`` object now accepts a keyword parameter named ``context_factory``. If this parameter is supplied, it must be a callable which returns an instance. This instance is used as the context for the request when a route is matched. - The registration of a RoutesModelTraverser no longer needs to be performed by the application; it's in the bfg ZCML now.
2008-08-04 - Add a ``request_type`` attribute to the available attributes of aChris McDonough
``bfg:view`` configure.zcml element. This attribute will have a value which is a dotted Python path, pointing at an interface. If the request object implements this interface when the view lookup is performed, the appropriate view will be called. - Remove "template only" views. These were just confusing and were never documented.
2008-07-31 - Add event sends for INewRequest and INewResponse. See theChris McDonough
events.rst chapter in the documentation's ``api`` directory.
2008-07-290.2.5: add model_url.Chris McDonough
2008-07-22Add url-based dispatch.Chris McDonough
2008-07-22Provide the entire environment to the traverser (in anticipation of having ↵Chris McDonough
e.g. Routes traverser).
2008-07-22NaiveTraverser -> ModelGraphTraverser.Chris McDonough
2008-07-20 - Add API functions for authenticated_userid and effective_principals.Chris McDonough
2008-07-20 - Add authenticated_userid and effective_principals API to securityChris McDonough
policy.
2008-07-20 - Add find_interface API.Chris McDonough
2008-07-19Add wsgiapp decorator.Chris McDonough
2008-07-19Yup.Chris McDonough
2008-07-19Bug.Chris McDonough
2008-07-19 - The concept of "view factories" was removed in favor of alwaysChris McDonough
calling a view, which is a callable that returns a response directly (as opposed to returning a view). As a result, the ``factory`` attribute in the bfg:view ZCML statement has been renamed to ``view``. Various interface names were changed also. - ``render_template`` and ``render_transform`` no longer return a Response object. Instead, these return strings. The old behavior can be obtained by using ``render_template_to_response`` and ``render_transform_to_response``.
2008-07-18Using Chris's help, changed signature of interface to support what the XSLT ↵Paul Everitt
processors expects. Fixed tests to assert that interface.
2008-07-17Be consistent about naming given docs.Chris McDonough
2008-07-16(no commit message)Paul Everitt
2008-07-16Added 'repoze.bfg.push:pushpage' decoratorTres Seaver
o Creates BFG views from callables which take (context, request) and return a mapping of top-level names.
2008-07-16Add convenience has_permission function.Chris McDonough
2008-07-16Add security.Chris McDonough
2008-07-15If the root object provides ILocation, wrap items in location proxiesChris McDonough
as necessary as we traverse.
2008-07-14Warn if views return non-Response objects.Chris McDonough
2008-07-14Test for case when view is response.Chris McDonough
2008-07-14Render templates explicitly in views.Chris McDonough
2008-07-14Test pickleability of registry actions.Chris McDonough
2008-07-14And, just to maximally confuse Paul, come full circle, and don't require ↵Chris McDonough
that the template be spelled on the class, while still allowing us to pickle the registry actions.
2008-07-14Less magical templated view model: make custom template views responsible for Chris McDonough
knowing their template's name.
2008-07-13Don't stash away the context.Chris McDonough
2008-07-13Use an application-local component registry.Chris McDonough
2008-07-12Clear the component registry.Chris McDonough
2008-07-12Speculative: cause routers to accept an app_context (the zcml configuration ↵Chris McDonough
context), so we can later enable an app-local component registry.
2008-07-12metaconfigure.py -> zcml.pyChris McDonough
2008-07-12Add explicit viewname logic.Chris McDonough
2008-07-12THe redirect-on-slash story isn't part of the publisher.Chris McDonough
2008-07-11Add security policy checks.Chris McDonough
2008-07-08Reuse the same PageTemplateFile for all requests to the same view.Chris McDonough
2008-07-08Redirect on default view if name doesn't end with slash.Chris McDonough
Rejigger sample app, adding more templates.
2008-07-08Call it TemplateView.Chris McDonough