summaryrefslogtreecommitdiff
path: root/repoze
AgeCommit message (Collapse)Author
2009-07-03- ``remoteuserauthenticationpolicy`` ZCML directive didn't workChris McDonough
without an ``environ_key`` directive (didn't match docs).
2009-07-03- Fix ``configure_zcml`` filespec check on Windows. Previously if anChris McDonough
absolute filesystem path including a drive letter was passed as ``filename`` (or as ``configure_zcml`` in the options dict) to ``repoze.bfg.router.make_app``, it would be treated as a package:resource_name specification.
2009-07-02Unused imports.Chris McDonough
2009-07-02Allow ``zcml_configure`` value to override the package.Chris McDonough
2009-07-02- Allow a Paste config file (``configure_zcml``) value or anChris McDonough
environment variable (``BFG_CONFIGURE_ZCML``) to name a ZCML file that will be used to bootstrap the application. Previously, the integrator could not influence which ZCML file was used to do the boostrapping (only the original application developer could do so).
2009-07-01- Make it possible to pass strings in the formChris McDonough
"package_name:relative/path" to APIs like ``render_template``, ``render_template_to_response``, and ``get_template``. Sometimes the package in which a caller lives is a direct namespace package, so the module which is returned is semi-useless for navigating from.
2009-07-01- Deprecate the ``authentication_policy`` and ``authorization_policy``Chris McDonough
arguments to ``repoze.bfg.router.make_app``. Instead, developers should use the various authentication policy ZCML directives (``repozewho1authenticationpolicy``, ``remoteuserauthenticationpolicy`` and ``authtktauthenticationpolicy``) and the `aclauthorizationpolicy`` authorization policy directive as described in the changes to the "Security" narrative documentation chapter and the wiki tutorials.
2009-07-01- Add three new ZCML directives which configure authenticationChris McDonough
policies: - ``repozewho1authenticationpolicy`` - ``remoteuserauthenticationpolicy`` - ``authtktauthenticationpolicy`` - Add a new ZCML directive which configures an ACL authorization policy named ``aclauthorizationpolicy``.
2009-07-01Use nonmutable default arg.Chris McDonough
2009-06-30- Bug fix: when a ``repoze.bfg.resource.PackageOverrides`` class wasChris McDonough
instantiated, and the package it was overriding already had a ``__loader__`` attribute, it would fail at startup time, even if the ``__loader__`` attribute was another PackageOverrides instance. We now replace any ``__loader__`` that is also a PackageOverrides instance. Symptom: ``ConfigurationExecutionError: <type 'exceptions.TypeError'>: Package <module 'karl.views' from '/Users/chrism/projects/osi/bfgenv/src/karl/karl/views/__init__.pyc'> already has a __loader__ (probably a module in a zipped egg)``.
2009-06-30- Add a ``reload_resources`` configuration file setting (aka theChris McDonough
``BFG_RELOAD_RESOURCES`` environment variable). When this is set to true, the server never needs to be restarted when moving files between directory resource overrides (esp. for templates currently). - Add a ``reload_all`` configuration file setting (aka the ``BFG_RELOAD_ALL`` environment variable) that implies both ``reload_resources`` and ``reload_templates``. - The ``static`` helper view class now uses a ``PackageURLParser`` in order to allow for the overriding of static resources (CSS / logo files, etc) using the ``resource`` ZCML directive. The ``PackageURLParser`` class was added to a (new) ``static`` module in BFG; it is a subclass of the ``StaticURLParser`` class in ``paste.urlparser``. - The ``repoze.bfg.templating.renderer_from_cache`` function now checks for the ``reload_resources`` setting; if it's true, it does not register a template renderer (it won't use the registry as a template renderer cache). - Add ``pkg_resources`` to the glossary. - Update the "Environment" docs to note the existence of ``reload_resources`` and ``reload_all``. - Use a colon instead of a tab as the separator between package name and relpath to form the "spec" when register a ITemplateRenderer.
2009-06-30Updated the ``bfg_alchemy`` paster template to include two views:Tres Seaver
- The view on the root shows a list of links to records. - The view on a record shows the details for that object.
2009-06-30Unused imports.Chris McDonough
2009-06-30- Register a ``repoze.bfg.resource.OverrideProvider`` as aChris McDonough
pkg_resources provider only for modules which are known to have overrides, instead of globally, when a <resource> directive is used (performance).
2009-06-29- Use ``caller_package`` function instead of ``caller_module``Chris McDonough
function within ``templating`` to avoid needing to name the caller module in resource overrides (actually match docs). - Make it possible to override templates stored directly in a module with templates in a subdirectory of the same module, stored directly within another module, or stored in a subdirectory of another module (actually match docs).
2009-06-29Add changelog entry for resource directive.Chris McDonough
Rejigger error detection ordering.
2009-06-29Merge pkg_resource_overrides branch.Chris McDonough
2009-06-27Fit reality.Chris McDonough
2009-06-27Represent reality properly.Chris McDonough
2009-06-27- The ``repoze.bfg.templating`` module now uses ``pkg_resources`` toChris McDonough
locate and register template files instead of using an absolute path name.
2009-06-27- Use the ``pkg_resources`` API to locate template filenames insteadChris McDonough
of dead-reckoning using the ``os.path`` module.
2009-06-27Docstring.Chris McDonough
2009-06-26Extension.Chris McDonough
2009-06-26Extension test.Chris McDonough
2009-06-26More docs.Chris McDonough
2009-06-26- Cause ``:segment`` matches in route paths to put a Unicode-decodedChris McDonough
and URL-dequoted value in the matchdict for the value matched. Previously a non-decoded non-URL-dequoted string was placed in the matchdict as the value. - Cause ``*remainder`` matches in route paths to put a *tuple* in the matchdict dictionary in order to be able to present Unicode-decoded and URL-dequoted values for the traversal path. Previously a non-decoded non-URL-dequoted string was placed in the matchdict as the value.
2009-06-25- Add optional ``max_age`` keyword value to the ``remember`` method ofChris McDonough
``repoze.bfg.authentication.AuthTktAuthenticationPolicy``; if this value is passed to ``remember``, the generated cookie will have a corresponding Max-Age value.
2009-06-25- Make ``route_url`` URL-quote segment replacements during generation.Chris McDonough
Remainder segments are not quoted.
2009-06-24Merge noroutes branch to trunk.Chris McDonough
2009-06-24Change the implementation and the signature for ``route_url``.Chris McDonough
2009-06-24Speculative fix for symptom similar to:Chris McDonough
http://code.google.com/p/google-app-engine-django/issues/detail?id=11 (reported by webmaven)
2009-06-24- Added the ``repoze.bfg.url.route_url`` API. This is meant toChris McDonough
"front" for the Routes ``url_for`` API. See the URL Dispatch narrative chapter and the "repoze.bfg.url" module API documentation for more information.
2009-06-24- ``model_url`` when passed a request that was generated as a resultChris McDonough
of a route match would fail in a call to ``route.generate``.
2009-06-23Deal with no-route-yet-defined case.Chris McDonough
2009-06-23Docstring.Chris McDonough
2009-06-23- The ``callback`` argument of the ``repoze.bfg.authentication``Chris McDonough
authentication policies named ``RepozeWho1AuthenticationPolicy``, ``RemoteUserAuthenticationPolicy``, and ``AuthTktAuthenticationPolicy`` now must accept two positional arguments: the orginal argument accepted by each (userid or identity) plus a second argument, which will be the current request. Apologies, this is required to service finding groups when there is no "global" database connection.
2009-06-22- The ``bfg_routesalchemy`` paster template app tests failed due to aChris McDonough
mismatch between test and view signatures.
2009-06-22Useless marker.Chris McDonough
2009-06-22- Add a ``view_for`` attribute to the ``route`` ZCML directive. ThisChris McDonough
attribute should refer to an interface or a class (ala the ``for`` attribute of the ``view`` ZCML directive).
2009-06-22We weren't computing the virtual root correctly in a corner case.Chris McDonough
2009-06-22More micro-optimizations to the default traverser.Chris McDonough
Fix registerModels to use the right traversal info names.
2009-06-22- The values of ``subpath``, ``traversed``, and ``virtual_root_path``Chris McDonough
attached to the request object are always now tuples instead of lists (performance).
2009-06-22Unused import.Chris McDonough
2009-06-22Add documentation for *subpath.Chris McDonough
Switch back to using a route with a subpath in the bfgalchemy paster template.
2009-06-22- Adding ``*path_info`` to a route no longer changes the PATH_INFO forChris McDonough
a request that matches using URL dispatch. This feature was only there to service the ``repoze.bfg.wsgi.wsgiapp2`` decorator and it did it wrong; use ``*subpath`` instead now. - The interface generation performed for named request factories had the wrong base classes.
2009-06-21Make urldispatch put matchdict into environ.Chris McDonough
Traverser no longer returns matchdict.
2009-06-21- Make Routes mapper responsible for doing magic to fix up PATH_INFOChris McDonough
and SCRIPT_NAME when a ``path_info`` key exists in the matchdict. This used to be done in the traverser, which made no sense.
2009-06-21Make views that do not have a route_name match when any route is used.Chris McDonough
2009-06-19Fix strange test breakage.Tres Seaver
2009-06-19Move pushpage support out into separate distribution.Tres Seaver